Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 - get all projects including components Edited

Hello,

I am working on JIRA Api 2 and trying to get all projects including components using this /rest/api/2/project.

When I get the single project using /rest/api/2/project/{projectIdOrKey}, I also get the components.

My question is how to get multiple projects including components.

Does anyone get the same question. Can you give me a hint.

Thank you

 

1 answer

Hi,

I'm not sure it is possible. In scheme for 'get all project' https://docs.atlassian.com/software/jira/docs/api/REST/8.4.3/ exist parameter 'expand'. But looks like it not work for 'components'. 

In my instance response show only 4 possible values for 'expand':

/rest/api/2/project?expand=lead

"expand":"description,lead,url,projectKeys"

I'm afraid that mean not possible get all projects with components. Only using loop foreach after get all projects.

B.R. 

Thank you @Andrew . I did try the expand query and get the same result.

So In my case what is the best solution for getting projects and its' components.

May I have to call /rest/api/2/project/{projectIdOrKey} many times or I have to use the /rest/api/2/search?jql to get all the issues then group the data.

@Andrew what do you think

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

261 views 13 14
View question

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