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

Hide transition if assignee and reporter are the same user

Daria Pavlova May 19, 2023

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

1 vote
Answer accepted
Anna Hryhoruk _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2023

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

Daria Pavlova May 26, 2023

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