Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,747
Community Members
 
Community Events
184
Community Groups

Is it possible to archive a Fix Version through Jira Automation?

Looking at the issue triggers, there are options for creating, releasing, unreleasing, and updating releases (see image below). However, I don't see anything about archiving releases. 

Is there another way to automatically archive a release through Jira Automation?

Screen Shot 2021-03-25 at 2.21.28 PM.png

1 answer

1 accepted

5 votes
Answer accepted
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.
Mar 25, 2021 • edited

Hi @Connor Skiro 

At this time, archiving from a rule with an action is not possible.  That is in the backlog:

https://codebarrel.atlassian.net/browse/AUT-702

As an elaborate work-around, you could call the REST API to do this by sending a web request action.  Here is some how-to information if you want to try that:

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

https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/version-updateVersion

Best regards,

Bill

Bill, 

Thank you for the information, I greatly appreciate it! I see that AUT-702 has been created and de-prioritized for quite some time. Do you know if there are plans to implement this action in the near term?

 

Best, 

Connor

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.
Mar 25, 2021

Hi Connor,

No, I do not have that information.  Unfortunately we cannot watch stuff in the old Code Barrel backlog to see when it moves.  I also checked the public Jira backlog and didn't find any related suggestions for this idea.

Best regards,

Bill

Again, thank you for taking the time to look into this! I'll look into the potential workaround with the REST API then.

 

Best, 

Connor 

Like Bill Sheboy likes this

@Connor Skiro 

any luck with the REST API to achive the fix verison? do you mind post some code here if you already done it ? 

Thanks 

It looks like you can set archived to true for fixVersions using their REST API.

{
"fields": {
"fixVersions": [{"archived": true}]
}
}

I tested this out quickly in my sandbox project and it succeeded. However, this only removes the Fix Version from the issue itself and doesn't actually archive it on the Releases tab.

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.
Nov 29, 2022

Hi @Connor Skiro 

Did you call the REST API from the rule using a webrequest with https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/version-updateVersion

Or, did you just update the fields in the issue?

At this time, I do not believe there is a built-in automation rule action to edit a version.  There is only create, release, and unrelease.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events