In Jira server, I would like to know if it is possible to block a transition when a ticket has been at a given moment in a given state before its current state (Not necessarily in the previous step, but during all the life of the ticket).
Thank you for your help.
Nath
This can also be done with the ScriptRunner add-on if you happen to have that available.
Using the "Simple Scripted validator" (or condition if you prefer to not even show the transition button).
/* The Issue must not have been in Status Draft at any point before its current Status */
import com.atlassian.jira.component.ComponentAccessor
def changeHistoryManager = ComponentAccessor.getChangeHistoryManager()
def issueChanges = changeHistoryManager.getChangeItemsForField(issue, 'Status')
!issueChanges.any { it.fromString == 'Draft' }
Hi Nath,
Do you have JMWE add-on? With this add-on, there is a workflow condition "Previous Status Condition". It may meet your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.