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
v-bacao-msft
Community Support
Community Support


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
v-bacao-msft
Community Support
Community Support


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

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

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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (30,268)