A filter for issues created last 7 days and did not updated last 7 days

Hello, 

This is the filter I came up with however I dont think it is working. Any idea what needs to be changed?

project = IT and created >= -7d and updated <= -7d and status not in ( Resolved , Closed )

 

Thank you.

Elif

1 answer

0 votes
Stephen Deutsch Community Champion Jul 12, 2017

Hi Elif,

The syntax of your query seems OK (although you may have to surround the -7d in quotes: "-7d"

However, the logic of your query might not be what you want. The act of creation of a ticket is also included in the updated date, so by that logic, any ticket created in the last 7 days will have been updated in the last 7 days.

This might be closer to what you're expecting:

project = IT and created >= "-7d" AND NOT status changed

This would find all tickets that have been created in the last 7 days that have not yet made a transition.

Stephen,

Thank you for your response. We would like to see the tickets created in last 7 days and never been updated since they are created. Most of the time IT tickets are being updated without the workflow status changed. IT engineers contact to reporters asking questions about the issue using the comments field in Jira and they don’t change the status of the ticket. Is there any way to capture that?  

 

Elif

It won't work out of the box, but if you install the JIRA Toolkit Plugin (or make sure it's enabled if you are using Cloud), then the following query should work:

project = IT and created >= "-7d" AND NOT status changed and "Number of comments" > 0

Stephen, 

What is I use this filter below. Do you think it works? 

project = IT and created >= "-7d" and updated <= "-6d" and status not in ( Resolved , Closed )

I am confused about the " updated " statement for the jira filters. If it does not include the workflow transitions , what does it include? I thought every update done to an issue can be capture with " updated" statement.

Thank you.

Stephen Deutsch Community Champion Jul 12, 2017

"Updated" does include workflow transitions, but it does not include comments.

As I stated earlier, though, the act of ticket creation itself is included in the "updated" field. A ticket cannot be set as updated earlier than its creation time. Therefore, the statement that you listed above will find issues that have been created or updated exactly 7 days ago, and anything created in the last 6 days will not be included in the results (because the act of ticket creation also sets the updated field to the date of ticket creation, and that date would be greater than 6 days ago).

What is the way to see if there is a comment posted on an issue or not?

Just to have JIRA Toolkit Plugin? Cannot be done via filters?

Stephen Deutsch Community Champion Jul 12, 2017

Ok, I found a way to do it without installing a plugin:

project = IT and created >= "-7d" AND NOT status changed and comment !~ "FIND_ISSUES_WITH_COMMENTS"

This will return all issues with comments that do not contain "FIND_ISSUES_WITH_COMMENTS", which would be all of them ;)

Stephen, 

Thanks for your response. But the filter you have provide shows the list of issues with the comments in them. I need the issues with no comments in them for last 7 days which is since they are created :(

Stephen Deutsch Community Champion Jul 12, 2017

Unfortunately I couldn't find any other way using pure JQL without installing the JIRA Toolkit Plugin. One option would be to search for all tickets that DO have a comment in the last 7 days, export those issues, copy the issue keys, and then search for all issues that don't include those issue keys.

But I think just installing the plugin would be easier ;) It's free too and seems to be well supported.

Stephen, 

Thank you for your time!

Elif

Stephen , 

Jira Toolkit Plugin has been downloaded to our system. However I am not sure how it will provide me the filter I need for the IT project tickets which are created last week and never been updated by the assignee? 

Like " Days since last comment" which I would like to use , it is not searchable or sortable. How am I going to use this for my Kanban board?

Documentation is not very helpful.

Thank you.

 

Elif

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,798 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot