Forums

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

MySql query to get list of tickets created in project in jira

Neeta Dubey
Contributor
September 13, 2019

Hi,

Could some one please help me with mysql query to get list of tickets created in between last 6months with project name if possible.

 

 

2 answers

1 accepted

0 votes
Answer accepted
DPKJ
Community Champion
September 13, 2019

Here is your query that prints issue id, issue number, project key and project name (please note that visible issue key that we see is combination of project key and issue number, i.e. <PROJECT_KEY>-<ISSUE_NUMBER>)

SELECT i.id AS 'Issue ID',
i.issuenum AS 'Issue Number',
p.pkey AS 'Project Key',
p.pname AS 'Project Name'
FROM jiraissue i
left join project p
ON i.project = p.id
WHERE i.created > Date_sub(Now(), interval 6 month);
Neeta Dubey
Contributor
September 16, 2019

Thanks! This is something I was looking for.

0 votes
Sebastian Krzewiński
Community Champion
September 13, 2019

Hi @Neeta Dubey 

 

Everythin what you need you can find in jiraissue table. Project id/name/key you will find in project table.

Knowing both tables in database you can easily create proper select query to find issues.

 

Regards,

Seba

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events