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

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 vote
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
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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

413 views 1 18
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