Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Project with many issues types and workflows - need to allow/disallow transition based on one field

Bernd
Contributor
September 24, 2018

I have a project with many Issues Types and Workflows (with sometimes many transitions). There is one field (-> called "blocked") which is present in all Issues Types. 

If this value is set to "yes" no transition is allowed but there should be a warning/info  dialog that tells the user that the issue is currently blocked.

If blocked = yes the transition is allowed.

Questions:

- how I can I manage to do that without going through all WFs / transitions?

- how can I show a dialog/info to the user when he tries to transition the Issue?

Thanks in advance,

Bernd

 

2 answers

0 votes
Mohamed Benziane
Community Champion
September 24, 2018

Hello @Bernd

I think you will need a plugin like Scriptrunner to do what you want and write a Script Condition.

 

Regards

Bernd
Contributor
September 24, 2018

@Mohamed Benziane: I have script runner .. so... how do I do it? ;-) 

Mohamed Benziane
Community Champion
September 24, 2018

You will need to do this for all transistion, go to you workflow and add a condition based on a jql query (Allows the transition if this query matches a JQL query):

blocked!=yes

 

You can be more exhaustive in your query

Regards 

0 votes
Nic Brough -Adaptavist-
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.
September 24, 2018

No, you are going to have to amend all the workflows you want to do this in.

You could do it with a condition, but that would hide the transition entirely so the user would have no feedback.  I'd say you probably want a validator, which can check what is in the field and return an error back to the user when validation fails.  It won't pop up a box, but will at least put something on-screen as a reason.

Suggest an answer

Log in or Sign up to answer