How To Create a Custom Action in Typescript/Javascript That I Can Use in New Work Item Rule (Azure Devops)

Armyc84 0 Reputation points
2023-08-03T14:11:43.14+00:00

Good Morning,

I would like to create a custom action in TS/JS that I can trigger in a New Work Item Rule in Azure Devops. What I want to do is that when the status of a Work Item is set to "Done", I'd like my custom action to reach out to all of the related PR's on the work item in which this state is changed, and tag each PR with a custom tag of "QA Complete". This is so that when looking at the list of commits on a repo, we can easily see what's been QA'd and what hasn't. I have been hard-pressed to find a way to do this. I know that the azure-devops-extension-sdk can be harnessed for such work, but the tutorials are all over the place, and I can't find one absolute clear way that tells me how to do this.

I came across this article

https://learn.microsoft.com/en-us/azure/devops/extend/develop/add-action?view=azure-devops

Which then led me to:

https://learn.microsoft.com/en-us/azure/devops/extend/develop/add-hub?view=azure-devops to set up a hub, but the tutorials don't work. The hub just fails to load. I'm so frustrated at this point.

I just want to create a custom action that does what I mentioned above and can be triggered from the New Work Item Rule's "Actions".

User's image

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,358 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.