Jira API Query

Fawad Haq July 8, 2021

Any help is appreciated. I need a Jira API query that pulls up all Jira users and a list of projects they have access to.  

Something like this : 

User 1

    Project A

    Project B

    Project C

User 2

  Project A

  Project B

  Project C

2 answers

1 accepted

1 vote
Answer accepted
Daniel Ebers
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.
July 14, 2021

Hi @Fawad Haq

REST API access is also available for Jira Cloud:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles/

However, to get what you want out of it there is no ready solution, it would require scripting and putting data together (for the specific structure you mentioned).

You specifically mentioned REST API, in case a paid App would be an option probable from Marketplace (https://marketplace.atlassian.com) there would be solutions (search team could be users or roles).

I am in doubt there is "that one single REST API call" to achieve the requirement.

Regards,
Daniel

0 votes
Soumyadeep Bose July 8, 2021

You may try using the Jira API designed for Python. Connect to the Jira server using user credentials, then you can create an instance of JIRA class to access the projects. Please refer to the Jira API documentation for Python for more details.

Fawad Haq July 9, 2021

This is on Jira Cloud.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events