microsoft / azure-pipelines-jira

Azure Pipelines for Jira
MIT License
15 stars 6 forks source link

Feature request: Update status on JIRA issues #20

Open steenole opened 4 years ago

steenole commented 4 years ago

We are using JIRA cloud for issue handling. Our source code is in Azure Devops Repos, and we use Azure Devops Pipelines for build and release.

It would be nice to set it up, so that a JIRA issue is automatically transitioned into another status, when Azure Pipelines has completed a deployement to a specific environment? The issue number is references in the Pull Request title.

joaolms commented 4 years ago

I was looking for this feature too.

rybkov commented 4 years ago

Currently trying to find our workaround by manually calling API through bash script.

Prototype curl --request POST --url 'https://<your-site>.atlassian.net/rest/api/3/issue/<issue-id>/<required-end-point>' --user '<user-name>:<token>' --header 'Accept: application/json' --header 'Content-Type: application/json' --data...

Issue is, how to get all work items to enumerate (they will be issue-ids)

steenole commented 4 years ago

We can get the issues related to a release with this api call https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}/workitems