Forums

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

JQL Query for tickets marked dev complete last month

Victoria Wiland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 1, 2018

I'm trying to put together a query that will pull all the JIRA tickets that were put into a status of Dev Complete during the previous month for our KPIs (e.g. it's now October, I want to see the ones that were marked Dev complete for September).

I have come up with the following query, which meets the syntax requirements, but does not return data: 

status changed to "Dev Complete" AFTER startOfMonth(-1m) BEFORE endOfMonth(-1m) AND assignee in (wilanv) ORDER BY created DESC

 

2 answers

1 accepted

1 vote
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2018

The problem here is that your syntax isn't actually looking back -1 month, but rather -1 minute.  The 'm' in JQL is in reference to minutes, not months.   But within those startOfMonths functions, you don't need the m at all.    Instead try using just

status changed to "Dev Complete" AFTER startOfMonth(-1) BEFORE endOfMonth(-1) AND assignee in (wilanv) ORDER BY created DESC

In order to see the issues transitioned to that status by that user last month.

Victoria Wiland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 1, 2018

Thank you! that worked. 

0 votes
Mohamed Benziane
Community Champion
October 1, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events