question

ukkaapie avatar image
0 Votes"
ukkaapie asked bhargaviannadevara-msft answered

Azure DevOps Powershell get work item related to build pipeline

Hi,

I have a build pipeline with a trigger on new branch creation. The trigger works fine with me creating a new branch and linking a workitem task to the new branch.

I have tried to run the query through the API to retrieve the workitem associated to the build but it always comes back blank. I can retrieve the list of workitems in the project no problem.

The URI I am using is:

https://dev.azure.com/{instance}/{project}/_apis/build/builds/{build id}/workitems?api-version=6.0

This returns a blank value. If I remove the "workitems" then I get a list of all the builds with one of the entries matching the build id. The PAT I am using has full access to the project (currently testing so have not been specific for the access).

This is the last step for me to complete and I can piece the whole puzzle.

Any help would be greatly appreciated.

Kind regards

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

bhargaviannadevara-msft avatar image
0 Votes"
bhargaviannadevara-msft answered

Hello @ukkaapie, Thanks for reaching out. Azure DevOps and its services is not supported on the Microsoft Q&A platform. Please post your question in the following forum where the Azure DevOps team and DevOps community are actively answering questions: https://developercommunity.visualstudio.com/spaces/21/index.html

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.