We have a requirement to hide one of the workflow status in view screen based on the create screen's radio button custom field yes or no option.
Can we achieve this through workflow validator condition on transition? Or What is the other possibility without third party add on?
This is what conditions are for, not validators.
A condition is evaluated every time someone lands on an issue screen that might offer transitions to the user. They're simple true or false questions. When true, the transition is offered, and when false, it is removed from the options.
A transition can have many conditions, but all of them have to return true for the transition to be offered.
Note that there is an invisible but always used condition of "user has permission to transition issues in this project".
So, what you need is a condition that says "is value of custom field X is filled (true) or empty (false)?". There's one of these built into Jira, look for "value field" when adding a condition into your workflow.
Hi @Sandesh TM
You can't hide a status of an issue based on a field value on a screen.
I don't even see that Script Runner offer the option to do this, and I probably grasp why. As it is important to know the status of an issue.
You are able to hade the possibility to hide a transition, as mentioned already by @Kris Dewachter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sandesh TM ,
Can you explain your question a bit more in detail ?
Do you want to hide the issue status from the detail screen ? If so, I don't think this is possible.
Or do you want to hide a certain workflow transition in the detail screen? This can indeed be done with a workflow validator on the transition (Field value)
Best regards,
kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the response.
Yes I have to hide certain workflow transition in the details view screen. And this should be done on the basis of custom field radio button- No option value.
If this can be achieved through workflow validator, please share the what validator to be used and the condition to be used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sandesh TM ,
Assuming you have a custom radio field called "Test Radio Button", with possible values "Yes" and "No".
If you want to hide the transition when "No" is selected, add a "Value Field" condition to the transition and configure it like in the screenshot below.
I hope this works.
Best regards,
Kris
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.