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

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

Connor Skiro
Contributor
March 25, 2021

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

2 answers

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

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

Connor Skiro
Contributor
March 25, 2021

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.
March 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

Connor Skiro
Contributor
March 25, 2021

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
Justin Liu
Contributor
November 27, 2022

@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 

Connor Skiro
Contributor
November 29, 2022

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.
November 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

0 votes
Sankalp Chugh
Contributor
August 31, 2023

Please vote for this feature here
https://jira.atlassian.com/browse/JIRAAUTOSERVER-236

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events