Is there a way to track previous issue id in a custom field?

Hi,

I'm curious -- let's say you move an issue from one project to another. I know you can look at the history and see the old issue id -- but is there a way to capture the old issue id, and save it in a custom field? This would make my migration project a lot easier.

4 answers

1 accepted

Accepted Answer
0 votes

Well, if you already have the issue created you may use Bob Swift's CLI plugin. Using this tool, you can copy issue's key field and paste it to the custom field. First method would only work for the future issues.

Thanks -- I'll do that.

Hello Bryan,

I think you can try the following if you get the "JIRA Misc Workflow Extensions" plugin. It's free:

  • Create a new custom field and name it "Original Id"
  • In the workflow, edit "create" transition
  • Add "Copy Value From Field to Field" post function
  • Copy "Key" to the new custom field

This way you have your original key stored in a seperate field.

Best regards

0 votes
Joe Pitt Community Champion Jan 02, 2013

You'd want to put the custom field on the view screen only or make it a read only field so users don't mess with the value. However, I think the original intent was to do it when the issue is moved to a new project.

Thanks guys -- yes, I want to move issues to a new project, and retain original key in a custom field. I followed the above tips, but it is not populating the field. I'm guessing an issue move is not considered a workflow task (or at least not a create new issue task?)

Bryan,

You can copy the key to custom field within same project by moving issues to a test status and back to original. Then move issues from one project to another.

Thanks,

Arpit

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

21,415 views 2 7
Join discussion

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