You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hello,
Is there a possibility to restrict the issue transition based on the custom field option selected.
Here is my Scenario:
I have a custom field X (Select list Single choice) with drop down values 1,2,3.
When a ticket is created and has option 1 selected, only a specific user can move that ticket to Done.
I have tried using the user condition in the workflow for the done status
issue.get("customFieldId=XXXXX")=="option 1"
This is hiding the "Done" status option in the workflow dropdown to other users but Its also hiding it for option 2 and 3 as well. I am looking to restrict if only option 1 is selected
Any suggestions or solutions to achieve this, please let me know
Thanks
You need to build out the proper condition flow.
Jira allows you to build a tree where you can build nested conditions:
In the screenshot I've shared, the conditions will allow either the reporter, or a user that is a part of BOTH of the groups specified to execute the transition.
In your case, you'd want it set such that IF the customfield = option 1, then the user must also be a certain person OR the custom field is set to 2/3.
Does that make sense?
Not exactly, how do I build a nested condition? Is it through the workflow conditions?
Should I add the user to a group. I have tried using the below condition and in the condition to the user section, I have used
issue.get("customFieldId=XXXXX")=="option 1"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So in this case, you can create just two conditions.
The one you are currently creating, and then a second one where custom field = 2/3.
When you have created both conditions, just change the "All of the following conditions" to "Any of the following conditions".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried the above option as well and its still hiding the done option for the other custom field options selected as well. I wanted it to be restricted only when option 1 is selected.
I have tried using the user validator from the workflow and used a conditional validator which then worked for me.
Thanks for the prompt response and suggestions on this request.
Thank you
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.