Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic transition from status to status script

Олег January 28, 2022

I have a custom field called "new" with true/false values. If true is selected in the custom field when creating a task, then the task goes from the Review status to the Design review status, if Design review == false, then the task goes further to Closed.


I also can't figure out what to use: Listener, or Custom script post-function [ScriptRunner] or Fast-track transition an issue [ScriptRunner]?


I would be very grateful if anyone can help or give advice.

1 answer

0 votes
Tim Perrault
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.
January 28, 2022

Hi @Олег 

 

You could definitely write a listener, but sometimes less is more. Try using the escalation service and have that fast track the issue when it matches a specific JQL query.

 

https://scriptrunner.adaptavist.com/6.20.0/jira/escalation-service.html 

 

Thanks,

Tim

Tim Perrault
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.
January 28, 2022

You could do everything in one listener, but you will need two Jobs created for this scenario, one job for each of the transitions you want to make. The escalation service jobs are super easy to create and maintain. Pros and Cons on each side.

Олег January 29, 2022

Tim Perro, good afternoon, thank you very much for the advice, I will try

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events