How to get all project components?

Kevin Shale December 12, 2014

Hi, I am using the JIRA rest java client (jira-rest-java-client-core) version 2.0.0-m31 and am looking for way to find all components of a project. I'm baffled by the API.

I have an instance of JiraRestClient but from there on I cannot find the next client object which can give me what I want.

Thanks for any pointers! Kevin

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 12, 2014

Did you try /rest/api/2/project/{projectIdOrKey}/components ? https://docs.atlassian.com/jira/REST/latest/#d2e2474 smile

Krishna Kumar Mandal December 12, 2014

I was about to answer and I saw this answer.

1 vote
Kevin Shale December 12, 2014

At last I found it! Thanks for having taken the time to answer!

Iterable<BasicComponent> components = jiraRestClient.getProjectClient().getProject(JIRA_PROJ).claim().getComponents();

 

0 votes
Kevin Shale December 12, 2014

Thanks! I haven't tried retrieving JIRA data in that manner yet. Until now I have been using this Java Rest API which I have added as a dependency to my Java Maven project.

How would I go about doing it your way?

 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events