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));
How does this work? The second argument is ProgressMonitor progressMonitor not an array list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FOUNT OUT!. getIssueClient().getIssue(bi.getKey(),Arrays.asList(IssueRestClient.Expandos.CHANGELOG), null);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found it!! :)))
It is of type Issue ->>
Issue issueHistory = restClient.getIssueClient().getIssue(issue.getKey(),Arrays.asList(IssueRestClient.Expandos.CHANGELOG)).claim();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try
<jira_host>/rest/api/2/issue/<ISSUE-KEY>?expand=changelog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe what nipun was specifically asking was if/how he can do this using the JIRA REST Java Client Library. Is this possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.