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.