Hi,
How can we use the API from the atlassian suite (jira) to automate Azure Pipelines when doing a pull request.
We can use JiraPS in Azure DevOps Pipelines but it keeps failing.
Script example:
I don't have access to ADO to test at the moment, but here's one way that avoids fooling with scripting & 3rd party libraries:
1) On the Jira side, set up a Jira Automation rule at the project or global level. Use
When: Incoming Webhook
Then: Add Comment To Issue
with smart values something like:
Pull request [{{webhookData.pullRequest.title}}]({{webhookData.pullRequest.url}}) has
been created in Azure DevOps.
and copy the generated webhook URL to the clipboard.
2) On the ADO side, set up a Service Hook with event "pull request created" and paste the URL you copied from the Jira side.
You just need to decide where the issue key will be in ADO (branch name, PR title, whatever) and configured the Jira side "When" to collect the issue key(s) as needed from the payload:
Also: you can obviously close issues or take other actions too. And you may want to add the free https://marketplace.atlassian.com/apps/1232793/azure-devops-for-jira-official?hosting=cloud&tab=overview app to make your integration tighter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.