How to retrieve history details of an issue from jira using "jira-rest-java-client"?

I am not able to retrieve history details of an issue using jira rest api.

How I can retrieve history details ?

2 answers

1 accepted

This widget could not be displayed.

You can ignore my question. I figured it out :)

getIssueClient().getIssue(bi.getKey(),Arrays.asList(IssueRestClient.Expandos.CHANGELOG));

How does this work? The second argument is ProgressMonitor progressMonitor not an array list.

FOUNT OUT!. getIssueClient().getIssue(bi.getKey(),Arrays.asList(IssueRestClient.Expandos.CHANGELOG), null);

This widget could not be displayed.

try

<jira_host>/rest/api/2/issue/<ISSUE-KEY>?expand=changelog

I am new to this. i want to retrieve history details using java rest api.

how can I retrieve history details using java rest api.?

You have posted the question again as comment. Faysal's comment was the answer for your question. Read the REST API docs at https://jira.atlassian.com/plugins/servlet/restbrowser#/, search google for how to make REST calls using you language of programming.

For history as Faysal says, pass the extra argument expand=changelog.

Also search this forum for many post on the same topic, for example https://answers.atlassian.com/questions/64708/is-it-possible-to-get-the-issue-history-using-the-rest-api

I believe what nipun was specifically asking was if/how he can do this using the JIRA REST Java Client Library. Is this possible?

Yes, this is what he wanted to know. He didn't post the question as comment, he tried to clarify since the answer has nothing to do with his question.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 18 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

45 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you