Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Edit Issue Automation - Fix Version

Scott Roehrenbeck
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2022

I am wanting to automatically set a fix version when a ticket is completed. Our issue, we have multiple types of issues in our project and also multiple releases on our projects (IE a release for mobile, one for web, etc)

I am trying to figure out a way to find the latest unreleased fix version that contains a specific name: IE mobile-release-1.1.1

Is it possible to get all releases and find the first one that contains mobile?

 

 

3 answers

2 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
October 20, 2022

Hello @Scott Roehrenbeck 

Welcome to the community.

I think this post covers the same topic.

(Credit to @Bill Sheboy for his answers on that post.)

0 votes
Answer accepted
Mikael Sandberg
Community Champion
October 20, 2022

Hi @Scott Roehrenbeck,

Welcome to Atlassian Community!

You would have to use the REST API and Get project versions paginated  to find the unreleased version that correspond to your search criteria, and then use that to set the fix version. JQL can search on versions, but it requires that the issue already have that version set in either Affects version or Fix version.

Scott Roehrenbeck
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2022

How would you go about using the Rest API within an automation rule?

Mikael Sandberg
Community Champion
October 20, 2022

You can use the Send web request action under Notifications and then use the returned result to get the name.

Screen Shot 2022-10-20 at 3.03.32 PM.png

Like Trudy Claspill likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 20, 2022

Hi @Scott Roehrenbeck -- Welcome to the Atlassian Community!

Adding to the answers...Here is a how-to article to set up and call a REST API method from an automation rule: 

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Kind regards,
Bill

0 votes
Cloudites Owner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 20, 2022

This automation is usually one step of a broader code repository check-in and release planning set of processes.

When the developer checks in the code they can update comments in Jira from many repositories and using a synced branch naming convention to the fix version, now you have a trigger to fire the fix version automation based on the code repository branch versioning.

This limited example doesn't take into consideration automated testing and release planning cycles which could update your fix version further.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events