Checks if this Issue has Been in a Status Previously Condition
This condition checks whether the issue has ever been in the selected status at some point or immediately before the current status (the current status is the status at the start of the transition you're applying this condition to). For example, you could use this condition to ensure a support ticket cannot be closed if it has never been with a customer service agent. This can be particularly useful when you have global transitions.
Use this condition
- Go to Administration > Issues > Workflows.
- Select Edit on the workflow you want to add a condition to.
- Select the transition to which you wish to add a condition.
- Under Options, select Conditions.
- On the Transition page, select Add condition.
- Select Checks the issue has been in a status previously [ScriptRunner].
- Select Add.
- Optional: Enter a note that describes the condition.
- Select previous status. This is the status the issue must have been in before the issue is permitted to transition.
- Optional: Select the Immediately previous only checkbox. Select this option if you want the condition only to apply when the issue has been in the chosen status immediately before the current status. The current status is the status at the start of the transition you're applying this condition to.
- Select Preview to see an overview of the change.
Select Update.
Select Publish and choose if you want to save a backup copy of the workflow.
You can now test to see if this workflow condition works.