Forums

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

How to query the issues which age is more than 10 days in JIRA

Liu Maggie August 9, 2018

I'd like to create a filter to query the issues (bug) which age is more than 10 days in JIRA.

2 answers

2 accepted

2 votes
Answer accepted
Alexey Matveev
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.
August 9, 2018

Hello,

I guess, a JQL query would look like this:

created < -10d and issuetype = Bug

Liu Maggie August 10, 2018

Thanks Alexey!

Liu Maggie August 10, 2018

@Alexey Matveev, tried it and it works as I expected. Very simple query, and I like it. Thank you again!

Alexey Matveev
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.
August 10, 2018

By the way, if you want to display bug's age. You would need a plugin for it. For example, you could use the Power Custom Fields plugin. It is a free add-on:

https://marketplace.atlassian.com/apps/1210749/power-custom-fields?hosting=server&tab=overview

Your custom field code would look like this

return currentDate() - created;

Then you can add this field to your query result.

Liu Maggie August 21, 2018

@Alexey Matveev, perfect solution. Appreciated your help!

Alexey Matveev
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.
August 21, 2018

@Liu MaggieIf you feel like I answered your question, kindly mark my answer as accepted. I am glad to help you.

Liu Maggie October 24, 2018

@Alexey Matveev, accepted your answer, thank you! Sorry to respond it late.

1 vote
Answer accepted
Yogesh Mude
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.
August 9, 2018

HI @Liu Maggie

Welcome to the Community!

You can use the JQL like Project = XYZ and IssueTyep = Bug and createdDate (betweencreatedDate.png range, More than function.)

Liu Maggie August 10, 2018

Thank you, Yogesh!

Another question: I want to display each bug's age in query result list, how to do it?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events