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
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!
Hello @Marcel Rode
Is this for a Company Managed project or a Team Managed project?
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, please. I cannot get this to work using Value or Option ID
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.