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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,642
Community Members
 
Community Events
185
Community Groups

Hide transition if assignee and reporter are the same user

Edited

Hi colleagues!

 

I want two transitions for my workflow

1. Cancel - available for assignee only

2. Cancel and close - available for reporter only

but when you're both reporter and assignee you see all of these transitions and for some of our coworkers it might be confusing

is there any way to configure a condition to hide 'cancel' transition when assignee =! reporter?

Thanks a lot in advance!


1 answer

1 accepted

Hello @Daria Pavlova ,

I think there is some typo in your requirement. Because if you configure a condition to hide 'cancel' transition when assignee =! reporter, that means the assignee will never see 'cancel' transition, but when the assignee and reporter are the same, both transitions will be available. 
So I think you need a condition if assignee = reporter hide 'cancel' (or 'Cancel and close')so only one of those is available. 

If you have Power Scripts app in your Jira , you can configure 'Power Scripts SIL Condition' on 'Cancel' transition (or 'Cancel and close' - depending on which one should be not available if the assignee and reporter are the same )  with the following script: 

if( assignee == reporter ) 
return false;

 Adding also some documentation about it https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15487273/Writing+Conditions+Validators+and+Post+Functions

Best regards,
Anna

Thanks a lot, I will try it

Like Anna Hryhoruk _Appfire_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events