You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hello and thank you for your support and suggestion.
I would like to create the following automation in Jira Cloud. I have Azure DevOps and would like to use webhooks, or if it should be possible otherwise, I would like to set that when a pull request is merged from the branch test into main and the build is then executed successfully, a customfield is written with the build number. Is this technically possible?
Thank you very much for your help.
In short you need to have the Jira issue key and if Azure Devops is able to perform a PUT request you can update a custom field on the Jira issue.
This is assuming you use Azure Devops for your code and builds and Jira for issue tracking?
How are you linking the pull requests with the Jira issues? Last time I checked there was no default integration between Azure Devops and Jira. Are you using a plugin or are you not linking them at all at the moment?
thank you for your answer.
Exactly, I use Azure DevOps for my code and builds/pipeline and jira for issue tracking.
I am using the GitKraken Git Integration for Jira, which allows me to view the pull requests in the tickets.
But I haven't found a way to map in the ticket the build number of a specific branch that was merged into main, that's my problem.
Jira automations can be triggered from a POST request: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Automationtriggers-Incomingwebhook
The problem is you need to porvide the issue keys in the payload. If you can extract the issue key from a commit message in Azure Devops you have your solution. I don't have access to an Azure Devops tenant myself anymore so I can't test it out for you.
But have you looked at this? The plugin you are using supports a trigger for pull requests. It should allow you to edit an issue based on that trigger: https://help.gitkraken.com/git-integration-for-jira-cloud/git-integration-jira-automation-gij-cloud/