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

3 votes
Accepted answer

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 Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

473 views 2 5
View question

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