How to allow all statuses except one to transition to a particular status?

Issue #642 resolved
Dinesh Loyapalli created an issue

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)

  1. Fidel Castro Armario repo owner

    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.

  2. Dinesh Loyapalli 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

  3. Dinesh Loyapalli 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?

  4. Fidel Castro Armario 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.

  5. Log in to comment