Forums

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

Get the history of the issue

AnupamS May 30, 2019

I need to fetch all histories for issue history migration through script. While I am able to get all the change history objects after the issue is created, I am not getting the flag (who created the issue with time stamp, probably because it is not change history, but only history). 

This is needed as in case of excel migrations, if we want to update history/comments through script, we also need the first history about creation of issue.

I don't see any other API than Change History. Any help will be appreciated. Below line is missing, rest all change items are available through API

Singh Deo, Anupam created issue - 03/May/19

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 30, 2019

Hello,

When you create an issue the line is not there. That is how Jira works.

AnupamS May 30, 2019

Hi Alexey,

I created an issue just now, you can see it comes (attached). I am not getting this event from change history. All changes after the issue is created are available from API.

 

Thanks,

Anupam

AnupamS May 30, 2019

Hi Alexey,

I created an issue just now, you can see it comes (attached). I am not getting this event from change history. All changes after the issue is created are available from API.

 

Thanks,

Anupamhistory_default.PNG

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 30, 2019

That is correct. When you create an issue, it does not go to the change history log. It is how Jira works. 

AnupamS May 30, 2019

yes, but is there any way that I can get this event through an API? Ideally speaking in migration through some file, we won't have any comments or histories. While we can get all the change history, we are missing this first event. In order to maintain consistency, we also need this very important event details. One way to think is maybe append reporter and time of creation, and maybe add it as an item, but reporter can also be updated through API, and hence this becomes unreliable.

 

I am hunting for any way to get this information and set it in the history as it is in the image I sent, before publishing any change histories. 

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 30, 2019

You should get the current values for the issues and add history to it

Suggest an answer

Log in or Sign up to answer