Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
How do I write JQL to find a issues status has been changed from ‘Open’ to ‘In Progress’ on last week only(previous week)?
My JIRA version is 5.0.2
Please help on this!
Thanks
Ganga S
status changed from Open to "In Progress" after -1w
or
status changed from Open to "In Progress" during (start date, end date)
Will this work?
Hi Jobin,
#1. It is not working, its brings the current weeks changes too.
#2: I don't have start date and end date field. Give me some more info about the date field.
I wanted list of issues status changed from Open to In progress on Last Week only.
Thanks
Ganga S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me, thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @arkady
You can use the Updated Date field or you can specify which field you want to see that updated:
project = "Project Name" AND status changed FROM "Status 1" TO "Status 2" DURING ('yyyy/MM/dd', 'yyyy/MM/dd') BY "username"
This way you can search between certain dates, by user and by field.
I don't think that you can specify if any field was updated.
I hope this helps somewhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Liam Maeder
Is it possible to find issues between two specific dates but from any status to closed status?
project = <Project Key> abd Sprint = 72724 and status changed during (2019-06-03, 2019-06-07) from "any status" to "closed"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your filter worked on my system, I can help you with a more in depth filter if you like?
Obviously it would only work if there is a transition from All to Closed.
Regards and Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Aakash Mehta, I believe you can achieve this just by dropping the FROM part of the jql and just using
project = <Project Key> and Sprint = 72724 and status changed to "closed" during (2019-06-03, 2019-06-07)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Liam Maeder , I tried what you provided and it worked. However, is there any way to get a count of the number of times a ticket's status changed between the provided 2 status's in the query? Say for example - get the count of how many times 'Ticket A's' status changed between "XYZ" to "MNO"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Liam Maeder Thanks , worked for me for the time being ; just wondering if there is a way to get it just for one day , The query seems to be expecting 2 different dates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, this was very helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Liam Maeder late to the party but thanks a ton! I was banging my head on how to sort between dates and now I know how to easily do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Liam Maeder ,
I tried the below query you suggested:
project = "Project Name" AND status changed FROM "Status 1" TO "Status 2" DURING ('yyyy/MM/dd', 'yyyy/MM/dd') BY "username"
However the query is refusing to accept any user names that I give it. I checked this on conditions I know should be valid and keep getting this error message:
"The user '...' does not exist and cannot be used in the 'by' predicate. "
Any idea why this would be?
How do I find out which user names the query will accept?
Thanks in advance, this would help us allot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Liam Maeder : Your query got me out of my trouble big time. Thank you so much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Shaul Gazit and @Liam Maeder I'm having similar problems with the by 'Username' not working.
How can this be resolved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Shaul Gazit and @Liam Maeder I found a workaround to the problem.
This statement does not work for me: project = "Project Name" AND status changed FROM "Status 1" TO "Status 2" DURING ('yyyy/MM/dd', 'yyyy/MM/dd') BY "username"
- the problem is the BY "username"
Solution: if you type assignee was "..." into the search "..." represent the user name. Once you select the username it will will give you the user's id, something like: 5d12312ae19f260df3456039
If you now use JQL: project = "Project Name" AND status changed FROM "Status 1" TO "Status 2" DURING ('yyyy/MM/dd', 'yyyy/MM/dd') BY 5d12312ae19f260df3456039
It worked for me. Enjoy!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
worked for me as well.
JQL:
project = "Test" AND status changed during (-7d, now())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is super useful thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You save my day
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much! This helped me perfectly!
I was interested in tickets that changed status to CLOSED in the last 24 hours.
With your help, my JQL ended up like this:
status= "Closed" and status CHANGED DURING (-1d, now())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
great
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The second time this thread helped me:
I never got it working with the (-7d, now()) because in the template of Jira itself there was en error with the brackets formula. It says there:
Correct is (-7d, now())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If status changed From "In Progress" To "Done" on single days by 2 users, then it;s showing for 2 users or 1 user.
Eg:- Case Id 1234, Riyaz has changed status as "In Progress" To "Done" at 8 AM.
then similarly Mayank has changed status as "In Progress" To "Done" at 5 PM.
So Case Id's showing 2 times while applying this query?
project = *** AND Status changed from ("In Progress") to (Done) during ("2020/04/05 7:30", "2020/04/06 7:30")?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe this will help someone
project = "Project" and status changed during (2018-08-01, 2018-08-30) FROM ("Status A") TO ("Status B")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, this was helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Useful JQL, thanks. The only issue I had was using the wrong variable - statusCategory -, as not all variables are working with retrieving historical data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see, you mean Calendar week? Try this:
status changed from Open to "In Progress" after startOfWeek("-1") before startOfWeek()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I want a result based on Calendar week.
The query is working for me. Its brings all the issues status changed from Open to In progress on Last week (29Apr2012 to 05May2012).
Thanks
Ganga s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jobin,
i need to know the jql for issue which remains in particulara status lets say "In Progress" for two weeks, how can i achieve this,
Appreciate your help.
Thanks and regards,
Moiz Shaikh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I haven't tried it but maybe something like this?
1. Create a filter to find all issues where status changed in the last 2 weeks
status changed after -2w
2. Write a query to find all issues which are in status "In progress" but not in the filter created in step 1.
status = "In Progress" and filter != "Filter in Step1"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jobin,
Thanks for your valuable support,the first one which you have suggested as,
status="In Progress" AND not status changed after -2w
solved my problem,
Thanks and regards,
Moiz Shaikh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ogon!
This what I need!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!
This was helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
status="In Progress" AND not status changed after -2w
also solved my problem, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way for me to get the date when it was marked DONE? Basically, I want to query that will result in the list of issue, the status change date when they were marked DONE? So Expecting output something like below:
Issue Id DONE date
xxxxx 12-Nov-2020
yyyyy 16-Nov-2020
etc. for all issues that match a given filter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need to know this too. Anybody can help us ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems all you need to do is create a dashboard with a JQL along these terms project = whateveraname AND statusCategory = Done ORDER BY updated ASC
Apply that to the dashboard with created date/updated date columns added to the dashboard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I Tried below
project = "ABC " and Sprint = ABC and fixVersion = "ABC" and status changed during (2020-04-01, 2020-04-04) FROM "To do" TO "Ready for testing"
No result shown - no error message either
Please help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all - I would like to have a query for bugs "In Review" for more than 1 day (project in ("Operations Manager") AND issuetype in (Bug) AND status = "In Review" AND NOT status changed after -1d ORDER BY priority DESC, created ASC, status DESC) but adding to this I also would like to see '' last status transaction date'' How do I get that ? Ia m not looking for date range I am looking for specific dates when the status got moved to IN-REVIEW from the list of bugs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good stuff here!
For my filter I wanted to know what our backlog of bugs last month was
issuetype in (Bug) AND
(
resolution is EMPTY AND createdDate < startOfMonth() OR
resolutiondate >= startOfMonth(-1) AND resolutiondate <= endOfMonth(-1)
) AND
status changed before startOfMonth()
Get bugs that were open last month
Bugs closed last month
Don't get bugs closed this month
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can I find the issues that are in Ready status but a resolution field set to done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this
status = Resolved and resolution = Done
You can enter `status=` and wait few seconds for options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @seran seran
You can check the advanced JQL documentation here (fields - status) and here (operators - changed).
I think you need something like:
status CHANGED TO "RTT" AFTER 2019-01-01
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This question seems to be duplicate of your own question https://answers.atlassian.com/questions/53861/how-do-i-write-jql-to-find-all-the-issues-has-been-changed-status-from-open-to-in-progress-on-last-week
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.