Forums

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

Using jql, get list of tasks that were completed yesterday

jblue
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!
August 21, 2018

in jira, the stories are estimated and the team has broken down the story into tasks and each task is set to be complete in 1 day or less.

I want to be able to see

1. All tasks that were completed CurrentDate() - 1

2. All tasks started on CurrentDate()

I am not a jira admin so wont be able to install anything on the server

 

 

 

2 answers

1 vote
Chris Nicosia
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

@jblue For #1, you can try to use the date the issue was resolved, assuming your sub-tasks' resolution is set at the same time the ticket is moved to your "Done" status.  So something similar to the following: 

issuetype in subTaskIssueTypes() and resolved > startOfDay(-1) and resolved < startOfDay()

For #2 this may be a little tricker because it depends on your workflow and there are a few ways to do this.  Here is one way:  If we assume your sub-tasks move from "To Do" status and into "In progress" status when they are started, you could try using this status change date like the following:

issuetype in subTaskIssueTypes() and status changed FROM "To Do" TO "In Progress" AFTER startOfDay()

Keep in mind this list may include tasks that were started and completed in the same day so if you don't want to see "Done" tasks in this list, simply add the following to that query:

and resolution = Unresolved

 

Let me know if this solution works for you.

James_McManamey July 25, 2019

We've written up a post on how you can find yesterday's completed issues in Jira.

https://stratejos.ai/blog/find-jira-issues-completed-yesterday-using-jql/

Also how you can filter the results by the people who completed them. Great for product managers and team leads. 

Stratejos  lets you run JQL from Slack and also set up daily custom messages with the results of any JQL. 

0 votes
Jobin Kuruvilla [Adaptavist]
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

Depends on what you mean by task is started and completed. If you have workflow transitions for each, you can do something like this:

status changed from "In Progress" to "Resolved" after -1d
status changed from "Open" to "In Progress" after startOfDay()

Suggest an answer

Log in or Sign up to answer