Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira API Query

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 vote
Daniel Ebers Community Leader Jul 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

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.

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
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

64 views 0 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you