Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Restrict the issue transition based on the custom field option selected.

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

1 answer

0 votes
Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 25, 2023

@venkat muppavarapu

 

You need to build out the proper condition flow.

Jira allows you to build a tree where you can build nested conditions:

 

Screen Shot 2023-09-25 at 10.15.24 AM.png

 

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?

Hi @Kian Stack Mumo Systems 

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"

condition.PNG

condition 1.PNG

Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 25, 2023

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".

 

Screen Shot 2023-09-25 at 10.45.29 AM.png

Hi @Kian Stack Mumo Systems 

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events