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

Your Points Tracker
  • 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
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?
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

How to use expanded fields for search with jira-rest-java-client-core?


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:

Promise<SearchResult> searchJql(
    @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(

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

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted

You are correct - the expandos are hardcoded and cannot be changed via API calls. You could do some hacking and invoke the private method via reflection...

How would I file a feature request?

You can open a bug here: The code is open source so if you feel like it, you can contribute here:

Like Dragana Volas likes this

So, 2 years later, the only way to get changelog for an Issue is:

Promise<Issue> issue = getIssueRestClient().getIssue(key, Collections.singletonList(IssueRestClient.Expandos.CHANGELOG));
return issue.claim();

Isn't it?

Thanks, regards

9 months later still not there. I've created pull request for that. 

Like Dragana Volas likes this
Community showcase
Published in DevOps

Introducing Atlassian Open DevOps

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...

192 views 0 2
Read article

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