Hi,
I'm trying to figure out if there is any automation options to release a version when it becomes approved? The approval condition in the automation only says it works for jira service management?
It would be good to be able to initiate the release upon approval.
While there is no automation rule trigger for approving a release, and the Version Updated trigger does not detect approval changes...there is a work-around: use a scheduled trigger and call a REST API function to check approvals.
For example:
Regarding the fuzzy part, to use a specific version, you could use Lookup Issues with JQL to find the issues in the next, unreleased version...and then use that in a call to the REST API. This seems a better idea than...Or, you could gather all of the versions and parse / filter them. That may be a problem later as more versions are added, pagination or filtering is required to get your correct version.
When making the REST API call, add the following to the end of the URL so the approver information is returned:
?expand=approvers
If you want to try this approach, here are some references:
How-to article for calling the Jira REST API from a rule -- https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828
Get a specific version -- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-id-get
Get all versions, paginated -- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-project-projectidorkey-version-get
Kind regards,
Bill
Hi @David McCorkindale , thanks for your question.
You could try, as a workaround, if you use an issue in Jira to record when the Release is approved, on the transition to the status to 'Approved' to release the version, like this
The default behaviour of the rule is to release the next unreleased version but it should be possible, if you have the FixVersion in the Jira issue, to refer to that with a smart value.
Please evalaute this solution and give us your feedback.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.