Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Bryan Karsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2013

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

0 votes
Answer accepted
Berke_Erem January 2, 2013

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.

Bryan Karsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 25, 2013

Thanks -- I'll do that.

1 vote
Berke_Erem January 2, 2013

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
Arpit Doshi May 28, 2013

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

0 votes
Joe Pitt
Community Champion
January 2, 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.

Bryan Karsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2013

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?)

Suggest an answer

Log in or Sign up to answer