Hello, I am looking to condition the mandatory nature of certain fields of an issue according to the value of one of the fields of the issue for example during a transition trigger a validation action (validator) according to the value of a field and not in all cases. Did someone already do this kind of thing ? Thanks a lot.
The functionality u are trying can be acheived by third party plugins where u will be able to add the conditional execution, Where if the conditional execution is true then the validator or condition will work.
Thanks.
Hi Gregory,
I never have a case like this but, if I could get it right what you need, I guess you can create diferente transitions for each case (even with the same "from" and "to" statuses) and the use a "Condition" to enable only one transition at a time, according to the field that will define the case. Then, in each transition, you'll be able to configure "Validators", to ensure that others fields are filled.
Hope that helps! Let us know if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Guilherme Bragatte ,
This is the usual way indeed. Smart.
In my case I was not able to implement that because you cannot set several global transitions (from any status) to the same status (the Closed one, in my case, if it matters).
An alternative could have been to turn the workflow into a plate of spaghetti, with 2 additional outgoing transitions from each status.
I chose to rewrite the validator (and its conditions) using a ScriptRunner validator script.
If anyone has a better idea ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.