What it is for
The Azure DevOps component lets you create, read, update and list Azure Boards work items and add comments to them from flooows. It is used to turn support tickets into tasks, alert the team chat when a bug changes, or sync tasks with other project tools.
New or Updated Work Item (Instant) is registered in Azure DevOps automatically and fires right away. The (Polling) version checks work items every few minutes and lets you filter by "State".
Set up the connection
Authentication type: Custom credentials
- 1In Azure DevOps, click your profile icon (top right) and open Personal access tokens.
- 2Click + New Token, give it a name and an expiration date.
- 3Under Scopes select Work Items with read and write, and Project and Team with read; create the token and copy it, since it will not be shown again.
- 4In flooows add an Azure DevOps step, click "Connect" and fill in "Organization URL" (for example https://dev.azure.com/mycompany) and "Personal Access Token".
| Connection field | Type | Required |
|---|---|---|
| Organization URL | Text | Yes |
| Personal Access Token | Secret key | Yes |
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Create Work Item: choose "Project" and "Work Item Type" (Bug, Task, User Story, etc.), map "Title" and "Description" from the previous step and optionally "Assigned To" and "Priority".
- Update Work Item: use the "Work Item ID" from the trigger to change the "State" or reassign the item.
- List Work Items: write a WIQL query in "WIQL Query" to fetch specific items and use "Limit" to cap results.
- Add Comment: add notes to an item, such as a summary of a customer ticket.
Tips
- •Set a reminder to renew the token before it expires.
- •Use the instant trigger when speed matters and the polling one to filter by state.
- •"Assigned To" usually expects the user's Azure DevOps email.
Triggers (2)
Events that can start a flow. Expand each one to see its fields.
New or Updated Work Item (Instant)Webhook (paste the URL in the app)3 fields
| Field | Type | Required |
|---|---|---|
| Project | List (from your account) | Yes |
| Work Item Type | List (from your account) | No |
| Events | Multi-select | Yes |
New or Updated Work Item (Polling)Periodic check3 fields
| Field | Type | Required |
|---|---|---|
| Project | List (from your account) | Yes |
| Work Item Type | List (from your account) | No |
| State | List (from your account) | No |
Actions (6)
Operations available as flow steps. Expand each one to see its fields.
Create Work Item6 fields
| Field | Type | Required |
|---|---|---|
| Project | List (from your account) | Yes |
| Work Item Type | List (from your account) | Yes |
| Title | Text | Yes |
| Description | Long text | No |
| Assigned To | List (from your account) | No |
| Priority | Fixed list | No |
Get Work Item2 fields
| Field | Type | Required |
|---|---|---|
| Project | List (from your account) | Yes |
| Work Item ID | Number | Yes |
Update Work Item8 fields
| Field | Type | Required |
|---|---|---|
| Project | List (from your account) | Yes |
| Work Item Type | List (from your account) | Yes |
| Work Item ID | Number | Yes |
| Title | Text | No |
| Description | Long text | No |
| State | List (from your account) | No |
| Assigned To | List (from your account) | No |
| Priority | Fixed list | No |
List Work Items3 fields
| Field | Type | Required |
|---|---|---|
| Project | List (from your account) | Yes |
| WIQL Query | Long text | No |
| Limit | Number | No |
Add Comment3 fields
| Field | Type | Required |
|---|---|---|
| Project | List (from your account) | Yes |
| Work Item ID | Number | Yes |
| Comment | Long text | Yes |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
Common errors
401 Unauthorized
The token expired or lacks scopes; create a new one with the scopes above and update the connection.
Project not found
Check the "Organization URL" and that the user can access the project.
Invalid state on update
Use a "State" that exists in that work item type's process.
Instant trigger not arriving
The token needs permission to create service hooks; turn the flow off and on again.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
