Forums

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

JIRA Rest API + JRJC - Retrieve all changelog from an issue

baegmon August 1, 2018

I'm trying to obtain all changelog from an issue using JRJC but I seem to be getting a null object (even though I can read other things such as the description).

How do I get this working properly?

My code: 

issue = issueRestClient.getIssue(issueKey).get();

System.out.println(issue.getDescription()); // works well

// Code below does not work, changelogGroups = null

========================================================================
Iterable<ChangelogGroup> changelogGroups = issue.getChangelog();

if(changelogGroups != null){
for(ChangelogGroup changelogGroup : changelogGroups){
System.out.println("Author: " + changelogGroup.getAuthor());
}
}
========================================================================

 

0 answers

Suggest an answer

Log in or Sign up to answer