Forums

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

How do I change the status of an issue based on age?

Adam Bergmann January 14, 2019

Hello,

I am trying to simply age out issues, or a particular type of issue.

If

issuetype=xyz

and status does not = Done

and creationdate is more than 45 days ago, 

then

change status to Done

Can this be done without an add-in of some kind?

Thanks

2 answers

1 accepted

1 vote
Answer accepted
thalesc
Contributor
January 14, 2019

Hi Adam, you can create a filter (just go to http://jira.yourdomain.com/issues/?jql=) and then you type a JQL similar to this:

issuetype = "Bug" AND status != Done AND createdDate > -45d

to breakdown the JQL:

  • issuetype = "Bug" - Issuetype is Bug
  • status != Done - Status is different from Done
  • createdDate > -45d - Created date is bigger than -45d (current date minus 45 days)
  • AND - Means it will bring the issues matching all the criteria.

After you get the result, on the top right if the screen go to Tools and then you will have "bulk change" if you have the permissions to do bulk change, it will then send you to a screen you can select what to do with the issues in the result screen.

Hope it helps.

Adam Bergmann January 17, 2019

Thank you. 

I am working with the Jira Admin to do run a job that uses this filter and then automatically does the bulk change of status.

It's out of my hands now.

0 votes
Adam Bergmann January 14, 2019

Thank you. Yes I have filtered and done bulk changes. Now following this all I need to do is automatically change the status of the result set.  I'm trying to have rule where a certain type of issue automatically 'ages out'. 

Thanks for the help.

thalesc
Contributor
January 15, 2019

I don't know if you can get this on Jira out of the box, I know Scriprunner Add-on from Adaptavist does have a "escalation" functionality that allows you to "close" tickets after a certain number of days, if that helps.

If you think you got the answer for your question consider marking the answer, and your post will be marked as solved.

Best regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events