Forums

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

Transition Condition" Value Field"

Marcel Rode March 26, 2024

Hi,

 

I want to hide a transition if a specific field has a specific value. For example if the single select dropwdown "Menu" has the value "Menu A".

 

Unfortunately I cant make it work. I've tryed to use condition "=", comparison type = string and value "Menu A", it didnt work. I've tryed condition "=", comparison type = Option ID and value = "<Option ID from REST API call>", it didnt work.

I used https://<myuser>.atlassian.net/rest/api/3/field/customfield_<id>/context/<context id>/option to get the correct Option ID.

Does anyone has an idead of what I am doing wrong?

 

Thanks in advance,

Marcel

3 answers

1 vote
Charlotte Santos -Appfire-
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 16, 2024

Hi @Marcel Rode 

I’m Charlotte, a support engineer at Appfire and I’m here to help you.

Unfortunately, natively, you’ll not be able to do it dynamically. In the app where my team works, Power Scripts, you can add a Power Scripts Condition, add the script below and you're all set:

!!issue.customfield_10120 && issue.customfield_10120.value != "Menu A"

You just need to change the Custom Field ID (customfield_10120) for the one from the field in your Jira instance. By following this you will be able to hide a transition if a specific field has a specific value. 

This is only one of the many functions Power Scripts offer, so, please feel free to contact our support if you have any questions about this function or about the app in general.

We’ll be happy to help you!

1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 26, 2024

Hello @Marcel Rode 

Is this for a Company Managed project or a Team Managed project?

Marcel Rode March 27, 2024

Hey Trudy,

its a company managed project.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2024

The Value Field condition doesn't hide the transition if the condition is met. It enables the transition if the condition is met, as per the description of the Condition.

"Allows to execute a transition if the given value of a field is equal to a constant value, or simply set"

And from this documentation:

https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/

"If a condition fails, the user will not see the transition button on the 'View issue' page, and so will not be able to execute the transition."

If you want to prevent the transition when the selection field is set to "Menu A", then you need to specify in the Value Field condition the value that will enable the transition. If there is more than one value that should enable the transition then you will need multiple Conditions and use the Any Of option.

Screenshot 2024-03-27 at 12.29.42 AM.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 13, 2024

Hello @Marcel Rode 

Did you find a solution that worked for you? If so, will you share what you chose to do here to help others learn from your experience?

Timothy Metivier December 17, 2024

Yes, please.  I cannot get this to work using Value or Option ID

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 17, 2024

@Timothy Metivier 

Given that this post is almost 9 months old I suggest you start your own brand new post to get wider attention on your question. Click the Ask the community option in the menu bar at the top of the page. Provide details about your environment and scenario. Provide screen images of what you have tried and tell us what the results were.

If this post from Marcel is relevant, include in your new Question a link to this post.

Like • Bill Sheboy likes this
Timothy Metivier December 20, 2024

The post is relevant.  I want to know if and how the user got this to work.  Was hoping for a simple explanation.  I'll take this to support and provide an update to this post.

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 26, 2024

Have you tried using the regular expression validator? I have one that hides the In Progress transition if the Triage field is set to Untriaged like this:

Screenshot 2024-03-26 at 8.20.50 AM.png

Marcel Rode March 26, 2024

I actually did yes, but it didnt work aswell :/ I even tested the Regex online to make sure there is no mistake in the expression itself.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events