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

Hid Transition based on status

Garden16_ July 7, 2023

I do not want to display cancelled transition button on the Task complete screen. 

But I have all transition associated with this status. How do I hide this on the Task completion transition screen . I have scriptrunner. Transition.PNGcancelled transition button on task complete screen.PNG

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Peter-Dave Sheehan
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.
July 7, 2023

The clutter of re-designing the workflow to change the global transition into a series of transitions from each other status EXCEPT one is not worth it in the balance.

A simple scripted condition does this job well in my opinion.

issue.status.name != "Complete"
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2023

I think it is always preferable to use the the out of the box tool rather than a script   in my opinion.

1 vote
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 7, 2023

Hi,

You can change your workflow and make sure that you delete the all transition to the cancelled status.

Or add a condition in you workflow with scritprunner that you hide the button if the issue is in the Complete status

Nic Brough -Adaptavist-
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.
July 7, 2023

I would not recommend using scriptrunner for this.  A condition for "don't show this transition out of this state" is not needed, you should just remove the transitions you do not want from the workflow.

TAGS
AUG Leaders

Atlassian Community Events