question

Nathan-8009 avatar image
0 Votes"
Nathan-8009 asked bhargaviannadevara-msft answered

Deployment status for work items

Hello,

I am working on azure devops where I would like to get the deployment status for each work item in a iteration. This needs to be powershell script to run the API. The scripts needs take the time, date range , iteration name and project name as input.

Consider I have 4 work items ( test-1, test-2, test-3 and test-4) in a "iteration-1" for a project called test.
I want to get the information listed under the Deployment tab for each work time via a powershell script.
The release pipeline is named, "Release-pipeline" which has Dev, QA and Prod stages.

Work item "test-1" is deployed to Dev and QA stages on 08/01/2021
Work item "test-2" is deployed to QA and Prod stages on 08/02/2021
Work item "test-3" is deployed to Prod stage on 08/03/2021
Work item "test-4" is not deployed anywhere yet so no deployment information is available in work item

After running the script the output needs to something like below:

Work-item name Deployment status

test-1 Deployed to Dev on 08/01/2021 Deployed to QA on 08/01/2021

test-2 Deployed to QA on 08/02/2021 Deployed to Prod on 08/02/2021

test-3 Deployed to Prod on 08/03/2021

test-4 Not deployed anywhere


The work item API does not seem to have the deployment information in it.

https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/work-items-list?view=azure-devops-rest-6.0

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 @Nathan-8009, Thanks for reaching out. Azure DevOps and its services are 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.