Can we hide workflow status based on validator condition?

Sandesh TM
Contributor
October 12, 2023

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?

3 answers

2 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.
October 12, 2023

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.

0 votes
Marc - Devoteam
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.
October 12, 2023

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 

0 votes
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 12, 2023

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

Sandesh TM
Contributor
October 12, 2023

@Kris Dewachter 

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.

Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 12, 2023

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.

Screenshot 2023-10-12 at 16.19.16.png

 

I hope this works.

Best regards,

Kris

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events