cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eduardoceanmind
Level: Powered On

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 Team
Community Support Team

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

2 REPLIES 2
Community Support Team
Community Support Team

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

Highlighted
eduardoceanmind
Level: Powered On

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?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,777)