Skip to content
Azure DevOps

How to use Azure DevOps

DevelopersCost: 1 credit per runTop 100 · #87Full guide

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

  1. 1In Azure DevOps, click your profile icon (top right) and open Personal access tokens.
  2. 2Click + New Token, give it a name and an expiration date.
  3. 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.
  4. 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 fieldTypeRequired
Organization URLTextYes
Personal Access TokenSecret keyYes

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
FieldTypeRequired
ProjectList (from your account)Yes
Work Item TypeList (from your account)No
EventsMulti-selectYes
New or Updated Work Item (Polling)Periodic check3 fields
FieldTypeRequired
ProjectList (from your account)Yes
Work Item TypeList (from your account)No
StateList (from your account)No

Actions (6)

Operations available as flow steps. Expand each one to see its fields.

Create Work Item6 fields
FieldTypeRequired
ProjectList (from your account)Yes
Work Item TypeList (from your account)Yes
TitleTextYes
DescriptionLong textNo
Assigned ToList (from your account)No
PriorityFixed listNo
Get Work Item2 fields
FieldTypeRequired
ProjectList (from your account)Yes
Work Item IDNumberYes
Update Work Item8 fields
FieldTypeRequired
ProjectList (from your account)Yes
Work Item TypeList (from your account)Yes
Work Item IDNumberYes
TitleTextNo
DescriptionLong textNo
StateList (from your account)No
Assigned ToList (from your account)No
PriorityFixed listNo
List Work Items3 fields
FieldTypeRequired
ProjectList (from your account)Yes
WIQL QueryLong textNo
LimitNumberNo
Add Comment3 fields
FieldTypeRequired
ProjectList (from your account)Yes
Work Item IDNumberYes
CommentLong textYes
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

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