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

Neeta Dubey 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 September 16, 2019

Thanks! This is something I was looking for.

0 votes
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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