Here are some useful applications of Power Automate’s Azure Devops Work Item actions.
For ones where you use the find example HTTP body requests for other tasks here: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/update?view=azure-devops-rest-7.1&tabs=HTTP#examples
1 Create a work item and set custom fields
A Work item can be created as below, to set custom fields you can add the Other Fields parameter and refer to the custom fields as CustomField.customfieldname
You can open an existing item using the below link to inspect the properties:
https://dev.azure.com/orgname/projectname/_apis/wit/workItems/23
orgname = your ADO org
projectname = name of your project
change 23 for the work item Id to open

Using the Update a Work Item:

2 Add a discussion comment to a work item
The below flow can be used to add a discussion comment to a work item. We need to compose the body and then send an HTTP PATCH request via the Send an HTTP request to Azure DevOps action
[
{
"op": "add",
"path": "/fields/System.History",
"value": "Update from Peggy Olsen: If this user story were copy, it just got promoted to the front page"
}
]


And our user story gets updated:

4 Get work items
You can retrieve work items by first creating a query in the ADO board
Then use ‘Get query results’ and specify the query to use.

