I am using jira-rest-java-client-core in version 4.0.0
I know how to retrieve expanded fields with IssueRestClient, but I am using the SearchRestClient. The interface doesn't allow to specify expanded fields:
@Nullable String jql,
@Nullable Integer maxResults,
@Nullable Integer startAt,
@Nullable Set<String> fields);
Can someone explain to me how to specify expanded fields (I am looking for the changelog items). I already tried to include it in the fields set (IssueRestClient.Expandos.CHANGELOG) but this didn't work.
In my opinion the values for the expandos are hard coded in AsynchronousSearchRestClient:
final Iterable<String> expandosValues = Iterables.transform(
ImmutableList.of(SCHEMA, NAMES), EXPANDO_TO_PARAM);
It is impossible to call the proper GET directly, since searchJqlImplGet (which allows to specify expandos) is private. I know that I could load the changelog via the IssueRestClient, but then I would need n extra calls (where n is the count of issues in the search result).
Thanks in advance, Christian
Community moderators have prevented the ability to post new answers.
You can open a bug here: https://ecosystem.atlassian.net/projects/JRJC/issues. The code is open source so if you feel like it, you can contribute here: https://bitbucket.org/atlassian/jira-rest-java-client.
Hey Community! I’m Shana, a member of our DevOps team here at Atlassian. I wanted to make sure you saw our announcement last week about the launch of Open DevOps since you may have missed it amidst a...
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