XoneWork Projects
XoneWork Projects reads the projects of XoneWork and what each one has: the columns of its board, its members, its tags and its sprints. It also creates, renames and deletes columns, creates tags and lists, creates and deletes the project’s webhooks, so a NappAI flow receives its events instantly.
The component works as the person who owns the token of the credential: it only sees the projects that token sees.
When to use it
- Find out which columns a board has (
TODO,In Progress,Test…) before moving tasks. - Give an agent the list of projects and people before it creates or assigns tasks.
- Check the active or planned sprints of a project, with their dates.
- Prepare the board of a new project with its columns and tags.
- Create a webhook that notifies another application when a task is created, changes column or receives a comment. A NappAI flow that starts with XoneWork Webhook does not need it: its webhook is created when the trigger is activated.
Configuration
You need a XoneWork credential with the address of your XoneWork and a personal API token. See Credentials.
- In XoneWork, open Account › API tokens and create a token. Choose its permissions and the projects it reaches. To manage webhooks, include the
webhooks_can_managepermission. - Copy the token, which starts with
tvk_. - In NappAI, create a XoneWork credential: in XoneWork address type the address of your XoneWork, for example
https://xonework.app, and paste the token in API token. - Choose that credential in the component’s Credential field.
| Field | What it does |
|---|---|
| Credential (required) | The XoneWork credential. It fills XoneWork Address and XoneWork API Token. |
| Operation | What you read or change. Default: List Projects. |
| Project | The project’s key (XONE), its name, its id or the address of one of its pages. Empty: the only project the token sees. It is a list with the account’s projects, and you can also type. |
| Column | The column, by its name. |
| Name | The name of the new column or tag, or the new name of the column. |
| Color | The color of the new tag, as #RRGGBB. Default: #00acd7. |
| Sprints | Only sprints in this state: Any (default), Active, Planned, Draft, Review or Completed. |
| Webhook Address | The public https address XoneWork sends the events to. A NappAI flow that starts with XoneWork Webhook does not need it: its webhook is created when the trigger is activated. |
| Webhook Events | The events the webhook sends. Default: task.created, task.statusChanged and task.commentCreated. |
| Webhook ID | The webhook’s id, from List Webhooks. |
Operations
| Operation | What it does | Fields |
|---|---|---|
List Projects | Lists the projects the token can see, with their key. | |
Get Project | Reads a project with its columns, members, tags and sprints. | Project |
List Columns | Lists the columns of the board in order. | Project |
Create Column | Adds a column to the board. | Project, Name |
Rename Column | Renames a column. | Project, Column, Name |
Delete Column | Deletes a column. | Project, Column |
List Members | Lists the people of the project. | Project |
List Tags | Lists the tags of the project. | Project |
Create Tag | Creates a tag in the project. | Project, Name, Color |
List Sprints | Lists the sprints of the project. | Project. Optional: Sprints. |
List Webhooks | Lists the webhooks of the project. | Project |
Create Webhook | Creates a webhook that sends the chosen events to an address. Returns its secret only once. | Project, Webhook Address, Webhook Events |
Delete Webhook | Deletes a webhook of the project. | Project, Webhook ID |
Output
The Data output returns one item per project, column, member, tag or sprint:
- Projects:
project_id,key,name,descriptionandarchived. - Columns:
column_id,nameandorder, in board order. - Members:
member_id,email,owner(whether they own the project) androles. - Webhooks:
webhook_id,url,events,activeandconsecutive_failures(failures in a row). Get Projectreturns the project withcolumns,members,tagsandsprints.
Create Webhook returns the webhook and its secret in secret. XoneWork does not show it again: store it right away in the application that receives the deliveries, which uses it to check the signature of each one. It is meant for notifying another application; a NappAI flow that starts with XoneWork Webhook creates its own webhook when the trigger is activated.
The component can be connected to an Agent as a tool: each node is one tool with its operation. See Tools.
Example
An agent creates tasks from meeting minutes and has to assign them to the right person.
- Connect to the agent a XoneWork Projects with
List Membersand the project in Project, as a tool: the agent sees the emails of the project’s people. - Also connect XoneWork Tasks with
Create Taskas a tool. - The agent reads the minutes, decides who handles each point and creates the tasks assigned by email.
To notify another application every time a task changes column:
- Run a XoneWork Projects with
Create Webhook, the project in Project, that application’s https address in Webhook Address andtask.statusChangedin Webhook Events. - Copy the
secretfrom the result into that application, so it checks the signature of every delivery. - With
List Webhooksyou see whether the webhook is still active and how many failures in a row it has. WithDelete Webhookyou delete it when it is no longer needed.
If a NappAI flow is the one that has to react, do not create the webhook here: start the flow with XoneWork Webhook and activate the trigger.
Good practices
- Before deleting a column that still has tasks, check with whoever runs the project.
- Store the
secretfromCreate Webhookas soon as you get it: it cannot be read again. If you lose it, delete the webhook withDelete Webhookand create another. - Use
List Columnsto check the exact column names before using them in XoneWork Tasks or XoneWork Trigger.
Security and limitations
- The token acts as the person who created it. Limit it in XoneWork to the permissions and projects the flow needs: a token without permission to change the board cannot create, rename or delete columns.
- To list, create and delete webhooks, the token’s person needs
webhooks_can_managein the project (through their role) and the token must include that permission. Being the project owner is not required. Without it, XoneWork answers 403. - The token never appears in the node: the credential fills it.
Related components
- XoneWork Tasks: read, create, move and assign tasks.
- XoneWork Trigger: starts the flow when a task changes.
- XoneWork Webhook: starts the flow with the webhooks of a project.
- XoneWork Comments: read and write comments.
- XoneWork Time Tracking: time spent on tasks.
- XoneWork Attachments: the files attached to a task.