Forums

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

Jira SQL for finding which tickets an engineer worked on, and when

Samuel Justus
Contributor
November 3, 2020

I'm trying to write SQL to tell me which tickets a colleague worked on during a specific date range. I can't seem to get the DURING operator to work. I only have "assignee in" so far

3 answers

1 vote
Bill Sheboy
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.
November 3, 2020

Hi @Samuel Justus 

Here is the documentation for the advanced JQL functions, with examples like what you are trying to do:

https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/

assignee WAS anEngineer DURING ("2020/01/15", "2020/01/31")

Due to the change for user security, start typing in the name and let the lookup find them.

Best regards,

Bill

0 votes
Liam Green
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.
November 3, 2020

Hi @Samuel Justus 

Does the query return a lot more results than expected?

I've just used the following to narrow it down:

assignee was XXX AND updatedDate >= startOfWeek() AND updatedDate <= endOfWeek()

Without the updatedDate it shows every ticket that is assigned to someone as even old tickets are technically still assigned 'During'.

It is worth noting that it may not show all work done by an agent - for that I think you'd need time logging.

Hope that helps,

Regards, Liam

0 votes
John Funk
Community Champion
November 3, 2020

Hey Samuel,

Can you share what you have so far? And what's not working as you would hope?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events