Auto close tickets using Script Runner

My system (JIRA 5.2)configured with jelly script for Auto close tickets that have been resolved in state for  30 days with email notification to reporter. Jelly script will change/update Resoled state to Closed with custom message to reporter after 30 days (as per filters) 

How to achieve same function with Script Runner? on JIRA 6.4.2

Please advise.

2 answers

1 accepted

Script Runner with Escalation service seems to be working. For add comment section comment treating as single line. How to make below comment as paragraph (line by line) issueInputParameters.setComment('Hello, This ticket has been in resolved state for 30 days without an update. This ticket will be automatically moved to closed state. If this issue has not been resolved satisfactorily, clone this to a new ticket. Thank you,JIRA Administrator.') Example: Hello, This ticket has been in resolved state for 30 days without an update. This ticket will be automatically moved to closed state. If this issue has not been resolved satisfactorily, clone this to a new ticket. Thank you, JIRA Administrator. Regards, Venu

Hey Venugopal,

you should set up a filter for your purpose -
f.e.: updated <= startofday(-30d) and status = resolved 

This filter you can use in the Escalation Service of ScriptRunner.
You find the Service in the Built-In Script section.

There configure your escalation service - put your filter query in there and select the transition of your workflow you want to be  performed - set your wanted interval in minutes or as cron expression and you're done smile

Greets
Simon 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

119 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you