An automation can start when an Azure DevOps work item changes. You choose the event, filter it by conditions such as tags, assignee, or work item type, and then choose what the automation does.
Before you start, connect the Azure DevOps organization and turn on the project you want to use.
Requirements
- The organization is connected, and the project is turned on. An automation on a project that is not set up is not saved. BoldCreate shows the message Set this project up first.
- You can create automations in BoldCreate. See Automations.
Work item events
In the WHEN step, select Azure DevOps to see its events.
| Event | Runs when |
|---|---|
| Work item created | A new work item is created in the project. |
| Work item updated | A work item is changed. |
| Work item commented | A comment is added to a work item. |
Add conditions
Use Only run if to limit which work items start a run. The panel lists the work item fields you can test: assignee, labels, priority, type, and state. Each row has a field, an operator such as is or contains, and a value. All rows must match for the automation to run.
To add a row, select Add another.
Choose what the automation does
In the WITH step, select Add to give the automation Azure DevOps actions. The actions are available only when the trigger is a work item event.
- Comment on the work item: posts a comment on the work item that started the run. The comment is posted as you.
- Update the work item: sets the state and other fields when the work is done. Select Add field to set more fields, for example a custom review status.
Example: Fix a work item and send it to review
- On the Automations page, select New automation.
- In WHEN, select Azure DevOps, then the event work item updated in your project.
- Under Only run if, add Assigned to is you, State is In Progress, and Labels contains
ai-readable. - In WHERE, choose the repository and branch.
- In DO, write the instructions, for example
Complete the reported work item. - In WITH, add Comment on the work item and Update the work item. Set State to Review.
- Select Save, then Test run.