Archive This Issue

The Archive this issue post-function automatically archives an issue when when it is transitioned. You can add a condition to define specific criteria that must be met for the post function to archive an issue. For example, if an issue is in the Resolve Issue transition, and is given the Resolution of Duplicate, you may want the issue to be archived.

Use this post function

  1. Go to Administration > Issues > Workflows.
  2. Select Edit on the workflow you want to add this post function to. 
  3. Select the transition you want to add this post function to.
  4. Under Options, select Post Functions.

  5. On the Transition page, select Add post function.
  6. Select Archive this issue.
    Image selecting this post function
  7. Select Add.
  8. Optional: Enter a note that describes the post function (this note is for your reference when viewing all post functions).
  9. Optional: Enter a condition. For example, to archive issues in the Resolve Issue transition that are given the Resolution of Duplicate you would enter issue.resolution.name == 'Duplicate'. If no condition is specified, then this post function will always run.
  10. Select Preview to see an overview of the change.
  11. Select Add.
  12. If applicable, reorder your new post functions using the arrow icons on the right of the function (they can only move one line at a time). Check out our documentation on Post function order for more information.
  13. Select Publish and choose if you want to save a backup copy of the workflow.

    Test your post function

    You can now test to see if this post function works.

    Restoring archived issues

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


Related content

On this page