Restrict workflow status based on Projects

Vidhya Mohan April 22, 2021

Is there a possibility to add a 'Status' to a common workflow and restrict the status only for some chosen projects? 

1 answer

1 accepted

2 votes
Answer accepted
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2021

Hi @Vidhya Mohan 

If you have ScriptRunner then you can add a script condition on the transition.

issue.projectObject.key=="PROJ"

However I was curious why not create a different workflow? It will be less confusing for the users if they see all the unreachable transitions on the workflow diagram.

Ravi

Joshua Sneed Contegix
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2021

Hi Vidhya,

Ravi is correct, separate workflows is the option to go with. There is no capability to limit statuses by project in the workflow natively and it is fairly unreasonable to think that is a good option because it is a bad idea. Don't go down that path, the solution is complex and difficult to maintain. Cheers!

Like Vidhya Mohan likes this
Vidhya Mohan April 22, 2021

Thanks @Ravi Sagar _Sparxsys_ and @Joshua Sneed Contegix , I've decided to create a new workflow :)

Like Joshua Sneed Contegix likes this

Suggest an answer

Log in or Sign up to answer