简体   繁体   中英

Azure DevOps & Logic Apps - Add comment

I've configured my logic apps to wait for HTTP request, parse JSON and then add the comment to specific work Item with the values from the request. Everything works fine, but in work item, the comment is always added with my identity.

How can I change the Identity / User of the new comment to something generic - eg 'auto-bot'?

The connection of Flow action is created based on a personal account. If you configures the Update item action, then the author of the added comment you.

You can look for two Options: (preferred option 2)

  1. Please consider adding tags to Comments, like: Comment by “Auto-Bot” (based on your HTTP request)
  2. Create an Service Account User in Azure DevOps and add DevOps connector using service account. Then when comment is added to worktime, it would be added by service account and not your name.

Reference to create the Service Accounts:

  1. https://learn.microsoft.com/en-us/azure/devops/server/admin/setup-ad-groups?view=azure-devops-2020#to-create-an-account-to-use-as-a-service-account-in-active-directory
  2. https://azuredevopslabs.com/labs/devopsserver/azureserviceprincipal/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM