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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Auto transition of issue based on JQL Condition by script runner

Hi Team,

We are using jira service desk cloud, and integrated with script runner for jira.

We have a field name Contract expire(date picker), 

and JQL Query like : project =xyz and and contract expired =now 

If this JQL query stratifies the issue has to auto transition to next status

Is there any way we can achieve in script runner for jira.




1 answer

Hi Pooja,

Thank you for your question.

I can confirm that ScriptRunner for Jira Cloud does not provide any polling functionality to automatically check when an issue field is updated via a JQL query and then to perform an action on it such as transitioning the issue.

However, I can confirm that it does have the Escalation Service feature as documented here which allows you to specify a JQL query which is run at a set period such as every hour and then perform an action on all issues returned such as to transition them. 

I can confirm we have an example of transitioning issues returned by an escalation service inside of the documentation page located here that you may find a useful reference to achieve your requirement.

Alternatively you could use a Script Listener which runs on the issue updated event and has some code to check if the condition is met on the issue and if it is then to make a rest call to transition the issue which will be similar to the rest call shown in the escalation service example linked above.

I hope this information helps.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

577 views 5 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you