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?
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://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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any luck with the REST API to achive the fix verison? do you mind post some code here if you already done it ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.