Need to find number of issues for a given version id through DB.?

Hi  Guys ,

  I looked at DB level to get the number of issues for a given versionID. I know jiraIssue.id had 1to n relationship with PROJECTVERSION.id. CAn anyone point me the Table name where they maintain this relation.

 

Thanks

Ramesh

 

1 answer

got the answer from 

http://doc.go2group.com/download/attachments/5931033/DbSchema.pdf?api=v2

 

select ji.pkey, pv.vname from jiraissue ji, projectversion pv, nodeassociation na where na.source_node_entity = 'Issue' and na.sink_node_entity = 'Version' and na.source_node_id = ji.id and na.association_type = 'IssueFixVersion' and pv.id = na.sink_node_id

 

 

select ji.pkey, pv.vname from jiraissue ji, projectversion pv, nodeassociation na where na.source_node_entity = 'Issue' and na.sink_node_entity = 'Version' and na.source_node_id = ji.id and na.association_type = 'IssueVersion' and pv.id = na.sink_node_id

 

--Thanks

 

https://developer.atlassian.com/display/JIRADEV/Database+Schema is a better place to look - it's kept up to date by Atlassian

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

121 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you