How to allow all statuses except one to transition to a particular status?
I have a workflow in which I have introduced a status'Cancelled'. Now I want all the statuses to be able to transition to 'Cancelled' except for the 'Open' status.
I know I can add transition from each status to 'Cancelled'. But is there a better way to do it?
Comments (7)
-
repo owner -
reporter I did not understand...I have status like OPEN, ASSIGNED, IN PROGRESS, IN SIT, IN UAT, DONE now i have added a status CANCELLED and I want all the statuses to be able to transition to this status Except for the "OPEN" Status
-
reporter Can you please help me?
-
repo owner Add "Boolean condition with math, date-time or text-string terms" condition to your gobal transition with the following boolean expression:
toUpperCase(%{00016}) not in ["OPEN"]
where
%{00016}
is field code for Issue status. -
reporter Okay the transition is available to all status except OPEN but the thing is we click on this transition it should take us to the cancelled status.
Global reflexive transition , can it change the status of an issue upon the transition?
-
repo owner I'm not saying a global reflexive, only global. A global transition is available to all the statuses of the workflow, and moves the issue to its destination status. Simply select Cancelled as destination status.
You can restrict the visibility of a global transition using a boolean condition, as explained above.
-
repo owner - changed status to resolved
Please, reopen it if provided solution is not valid for you.
- Log in to comment
Hi @DineshLoyapalli,
Yes, you can use a global transition, which is available to all the statuses of the workflow.
In the above link there is a description of this kind of transitions. Please, let me know if you have any doubt.