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 theResolvedtransition, and has theResolutionDuplicate, you want it to be archived.
Select theArchive this Issue [ScriptRunner]post-function.
InNoteenter a description for the job, for example,Archive duplicate or rejected issues.
Enter theConditionfor which, on true, the post-function fires. The example below archives issues in theResolvedtransition with theResolutionDuplicate.