Close resolved issues after a certain time automatically

Niek Neuij November 6, 2015

Dear Sir/Madam,

Does anyone know how to close a resolved issue automatically after a certain time?

It would come in handy for our JIRA project we're doing.

3 answers

1 accepted

0 votes
Answer accepted
GabrielleJ
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.
November 6, 2015

Try the SR Escalation Services, it works pretty well and setup is straightforward.

1 vote
Jeff Louwerse
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.
November 6, 2015

Hard to be explicit as there are many ways to ski this cat.

You can write some external script (say in PHP) to to make a REST call  to pull the issues you want to close (you can write you own JQL query to be exactly as you want it) .. loop though the issues and make REST calls to close them.  At least i think you can transition an issue via REST.

If you have scriptrunner or are familiar with writing services, this could be done there (that is where I do it).  The concept is the same.

 

 

 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 6, 2015

Also the automation addon is worth a shot. Jeff - you're right about REST, you can use it to push issues through transitions.

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
November 6, 2015

Using JIRA Command Line Interface (CLI), you can use something like the following in your favorite job scheduler:

jira --action runFromIssueList --jql "status = resolved AND resolutiondate < -1w" --common "--action transitionIssue --issue @issue@ --transition \"Close Issue\" "

Suggest an answer

Log in or Sign up to answer