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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

502 views 8 9
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