Is there a way to export the history?

This question is in reference to Atlassian Documentation: Viewing an Issue's Change History

We're looking to archive and delete aged JIRAs. Is there a way to capture change history as an export like the rest of the issue data?

2 answers

1 accepted

Hi @Brian Bashynski,

This is not possible from the application, but you can do it from the db using the following query

select 
jji.issuenum,
jit.pname as IssueType,
jji.SUMMARY,
jci.OLDSTRING as OldStep,
jci.NEWSTRING as NewStep,
jcg.AUTHOR,
jcg.CREATED as changeDate
from changeitem jci
join changegroup jcg on
jci.groupid = jcg.ID
join jiraissue jji on
jcg.issueid = jji.ID
join issuetype jit on
jji.issuetype = jit.id
where jci.FIELD = 'status' -- this is used if you want only the transition history
and jji.project =10003; --this is used if you want to filter for a project

:

 

Thank you. I came up with something similar. I guess I was looking for a shortcut to thinking. smile

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

600 views 2 15
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot