I have a workflow which requires a condition to be validated before transition to next status.
The condition needs to be checked is,
1)only when the ticked is assigned to assignee, the status should enable from "open" to "In progress" and following other status.
2)If ticket is not assigned to anyone, only "Cancelled" and "On Hold" status should be enabled. Could you help on writing script to satisfy this condition for workflow
You should just be able to put "assignee empty/not empty" in the condition header, but if you want to do it as a script, try
if ( issue.getAssignee() ) { Return false }
Return true
for the open and in-progress transitions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.