Jql Statement to find issues that have not been worked on

I am trying to find a JQL statement to find all issues that are in an open status for 7 days. I have tried

project = 'x' AND status = Open AND Department = 'x' AND NOT status changed AFTER "-7d". But it shows me a issue that I created 4/5/16 at 16:10. I even changed the -7 to a positive, changed to w and adjusted the 7 to other numbers but keeps showing the same issue. Any assistance would be helpfully.

3 answers

This query will show you issues that were created more than seven days ago and are still open: 

project = 'x' AND status = Open AND Department = 'x' and created < -7d

If that doesn't meet your needs, please give us some more information.


I am trying to write the jql to tell me which issues that have been open and never been updated or worked on. I have the project setup where people put in the issues and then an approver approves or denies the  issues then it gets assigned to somebody. So I need a script that tells when a issue is still in open after 7 days and never transition to Approved or deny.

So then I can email that approver

If you change your query to look for open issues that haven't been updated in the last 7 days, does that give you what you want?

project = 'x' AND status = Open AND Department = 'x' and updated &lt; -7d

I was trying to not go that route since if somebody types something in the issue then it registers that it was updated. I wanted to have the time frame jql to go off the status. This way that if somebody accidentally updates the wrong ticket it does not get missed.

You can make this work as long as you are happy to list all the statuses you want to know about it possibly being in. eg:

project = 'x' AND status = Open AND Department = 'x' AND NOT status was in (Approved, Denied) after -7d

But I think you are pushing JQL pretty hard, so this might run pretty slow especially if you have lots of data ... 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted 3 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

14 views 0 3
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