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
Community moderators have prevented the ability to post new answers.
Did you try /rest/api/2/project/{projectIdOrKey}/components ? https://docs.atlassian.com/jira/REST/latest/#d2e2474
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At last I found it! Thanks for having taken the time to answer!
Iterable<BasicComponent> components = jiraRestClient.getProjectClient().getProject(JIRA_PROJ).claim().getComponents();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.