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));
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.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.