Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find all the child issue under an Epic using jira-rest-java-client-core

Luk Lau
Contributor
February 6, 2020

How do I find all the child issue under an Epic returned from the following

Issue epic = restClient.getIssueClient().getIssue(some-epic-issue-key);

I am not able to find any variables in Issue (com.atlassian.jira.rest.client.api.domain.Issue) that contain any info about child issues..

thanks

Luk

 

1 answer

1 vote
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2020

Dear @Luk Lau ,

I am not familiar in details with the Java Rest Client. But finally this client just calls the REST API. The API itself does not offer such kind of functionality. 

So to get what you want, you need to query (API /rest/api/2/serach) and pass a JQL that resolves "children of epic". The result will be a JSON array of all matching issues.

So long

Thomas 

Suggest an answer

Log in or Sign up to answer