cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akshayrajsingh
Frequent Visitor

Azure DevOps Work Item "Discussion" field automation issue

Hello,

         I have a scenario wherein Im trying to setup a Flow between Outlook and Azure DevOps wherein the Azure DevOps Work Item will get Updated based on a response to an email, having certain criteria in it. One of the big ASKS here is to Update the Work Item with the LATEST details/response in the body of the email. The issue I have here is that Flow/Automate does not currently recognize the Discussion field an AzDo Work Item and thus Im unable to map it. The only option I have is to Update the Description every-time (Essentially Override) which makes everything very convoluted

 

Does anyone have a work around for this?

3 REPLIES 3
kcarr
New Member

Hi,

 

We had a similar need and was able to do this by using the "Send an HTTP request to Azure DevOps" action.

 

You would set the Relative URI to something like "https://dev.azure.com/[your organization]/[Project]/_apis/wit/workItems/[work item]/comments?api-version=5.1-preview.3"

 

and in the Body field a simple Json 

 

{
    "text": "Moving to the right area path"
}

 

This will post a new comment to your work item.

 

martindr
Advocate II
Advocate II

The name of the discussion field is actually 'History' and updating that works fine.

https://powerusers.microsoft.com/t5/General-Power-Automate/Capture-Approval-Comment-in-Azure-DevOps-...

May I ask how to write the Header for authorization?

 

I used Authorization: Bearer <personal access code generated from Azure DevOps>  but it doesn't work.

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,294)