Forums

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

Help with db query

Shimshey Rosenberg April 3, 2019

I need a query to tell me the following;

count of tickets, where assignee = person1 and date between date1 and date2

Grouped by year/month

 

Which tabels to I need for that? and, can someone help me with the actual query?

(the built in reports does not give me more than a year)

2 answers

2 accepted

0 votes
Answer accepted
Shimshey Rosenberg April 3, 2019

Thanks!! I have successfully queried the db!

Here is an example code for reference.

--

Select count(ID), Year(created), Month(created)
From jiraissue
Where project = 1120 and assignee = 'user'
Group BY YEAR(created), Month(created)

0 votes
Answer accepted
Alexey Matveev
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.
April 3, 2019

Hello,

You should query the jiraissue table.

Use assignee and created fields.

Suggest an answer

Log in or Sign up to answer