Skip to content

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.

  1. 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_manage permission.
  2. Copy the token, which starts with tvk_.
  3. 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.
  4. Choose that credential in the component’s Credential field.
FieldWhat it does
Credential (required)The XoneWork credential. It fills XoneWork Address and XoneWork API Token.
OperationWhat you read or change. Default: List Projects.
ProjectThe 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.
ColumnThe column, by its name.
NameThe name of the new column or tag, or the new name of the column.
ColorThe color of the new tag, as #RRGGBB. Default: #00acd7.
SprintsOnly sprints in this state: Any (default), Active, Planned, Draft, Review or Completed.
Webhook AddressThe 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 EventsThe events the webhook sends. Default: task.created, task.statusChanged and task.commentCreated.
Webhook IDThe webhook’s id, from List Webhooks.

Operations

OperationWhat it doesFields
List ProjectsLists the projects the token can see, with their key.
Get ProjectReads a project with its columns, members, tags and sprints.Project
List ColumnsLists the columns of the board in order.Project
Create ColumnAdds a column to the board.Project, Name
Rename ColumnRenames a column.Project, Column, Name
Delete ColumnDeletes a column.Project, Column
List MembersLists the people of the project.Project
List TagsLists the tags of the project.Project
Create TagCreates a tag in the project.Project, Name, Color
List SprintsLists the sprints of the project.Project. Optional: Sprints.
List WebhooksLists the webhooks of the project.Project
Create WebhookCreates a webhook that sends the chosen events to an address. Returns its secret only once.Project, Webhook Address, Webhook Events
Delete WebhookDeletes 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, description and archived.
  • Columns: column_id, name and order, in board order.
  • Members: member_id, email, owner (whether they own the project) and roles.
  • Webhooks: webhook_id, url, events, active and consecutive_failures (failures in a row).
  • Get Project returns the project with columns, members, tags and sprints.

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.

  1. Connect to the agent a XoneWork Projects with List Members and the project in Project, as a tool: the agent sees the emails of the project’s people.
  2. Also connect XoneWork Tasks with Create Task as a tool.
  3. 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:

  1. Run a XoneWork Projects with Create Webhook, the project in Project, that application’s https address in Webhook Address and task.statusChanged in Webhook Events.
  2. Copy the secret from the result into that application, so it checks the signature of every delivery.
  3. With List Webhooks you see whether the webhook is still active and how many failures in a row it has. With Delete Webhook you 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 secret from Create Webhook as soon as you get it: it cannot be read again. If you lose it, delete the webhook with Delete Webhook and create another.
  • Use List Columns to 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_manage in 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.