I am not able to retrieve history details of an issue using jira rest api.
How I can retrieve history details ?
You can ignore my question. I figured it out
getIssueClient().getIssue(bi.getKey(),Arrays.asList(IssueRestClient.Expandos.CHANGELOG));
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?
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);
As what kind of type of object/List am I suppose to "save" the data from the history?
I am getting a suggestion of:
Promise<Issue> issueHistory= restClient.getIssueClient().getIssue(issue.getKey(),Arrays.asList(IssueRestClient.Expandos.CHANGELOG));
when I am in debugging mode and analyzing the variable "isseHistory" i cannt find any useful information.
It looks like you're new here. Sign in or register to get started.