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.

  1. Select the Archive this Issue [ScriptRunner] post-function.

  2. In Note enter a description for the job, for example, Archive duplicate or rejected issues.

  3. Enter the Condition for which, on true, the post-function fires. The example below archives issues in the Resolved transition with the Resolution Duplicate.

  4. Click Update.

See the Atlassian documentation for details on how to restore archived issues.