Forums

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

List all the jira proejcts with its groups and users

Reneesh Kottakkalathil
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.
August 16, 2019

Looking for a SQL query to list all the Jira projects with its users and roles.

1 answer

1 accepted

0 votes
Answer accepted
Thomas B
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.
August 16, 2019

@Reneesh Kottakkalathil - try this

 

SELECT project.Id, project.pname, project.pkey, projrole.PROJECTROLEID, projrole.ROLETYPEPARAMETER
FROM [jiradb].[dbo].[project] as project
JOIN [jiradb].[dbo].[projectroleactor] as projrole
ON project.Id = projrole.PID
Order by pname ASC

 

If you want to pull in project leads just add project.Lead

Reneesh Kottakkalathil
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.
August 16, 2019

Excellent! Thanks so much @Thomas B 

Thomas B
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.
August 16, 2019

Awesome @Reneesh Kottakkalathil glad it worked. Please accept the answer if you can. 

Reneesh Kottakkalathil
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.
August 19, 2019

@Thomas B  Answer Accepted. Thanks.

Suggest an answer

Log in or Sign up to answer