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.
Regards,
Pooja
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.
Regards,
Kristian
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.