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
This video will help you put field restrictions in workflow transition
Jira Transition Restriction (field level)
https://youtu.be/W3vhZJkJ52A
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.