cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eduardoceanmind
New Member

Adding a comment to a DevOps Work Item using a given user

In Flow, I am using a DevOps - Update Work Item action, that updates a work item and adds a comment to it, using the Other Field "history" as the content of the comment. The problem is that the author is set to be the owner of the connection that the action is using, yet since the flow is triggering using an email, the author needs to be set dynamically using the email's author (provided he has an account in DevOps). How can I do this? Is there another name in "other fields" section, perhaps something like "Author" that I can use to set the author of the comment given the name, email or id from the email that started the flow?

 

The trigger is an email arriving, the formatted body is the "output" seen in 

 

devops.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Adding a comment to a DevOps Work Item using a given user


Hi @eduardoceanmind ,

 

The connection of Flow action is created based on a personal account. If the current user configures the Update item action, the author of the added comment will be the user who configures the connection.

I am afraid there is currently no good way to solve this problem. Please consider adding tags to Comments, like: Comment by Email Sender.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Re: Adding a comment to a DevOps Work Item using a given user


Hi @eduardoceanmind ,

 

The connection of Flow action is created based on a personal account. If the current user configures the Update item action, the author of the added comment will be the user who configures the connection.

I am afraid there is currently no good way to solve this problem. Please consider adding tags to Comments, like: Comment by Email Sender.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

eduardoceanmind
New Member

Re: Adding a comment to a DevOps Work Item using a given user

Thanks for the reply. Is there no way to do it with a HTTP request action item instead?

Singh0190
Frequent Visitor

Re: Adding a comment to a DevOps Work Item using a given user

I had the same issue. I just did the workaround since HTTP was not working for me. I just created Service Account User in Azure DevOps and added DevOps connector using service account. Then when message was sent it was sent using service account and not my name.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,831)