Archive This Issue
This post-function automatically archives an issue when it transitions from one status to another. Add a condition to specify if an issue should be archived or not.
For example, if an issue is in the Resolved transition, and has the Resolution Duplicate, you want it to be archived.
Select the Archive this Issue post-function under Script Post-Function [Scriptrunner].
In Note enter a description for the job, for example, Archive duplicate or rejected issues.
Enter the Condition for which, on true, the post-function fires. The example below archives issues in the Resolved transition with the Resolution Duplicate.
See the Atlassian documentation for details on how to restore archived issues.