Change the pkey with the issueID


I know that it could be a crazy question, but....

Is possible to change in Jira, the PKEY of the issue that i have in JIRA, with the ISSUE ID of the issue??

I wanto to see in the page of the issues and in the search page, the number of the issue and not the pkey; because I have a lot of isseus that I have to shift from one project to another, not only one time, but a lot of time... so it could be very difficult manage the change pkey that I have every time that I move from one project to another...



2 answers

1 accepted

hi Marco,

we have had the same issue where we shift a lot of issues between projects and as such loose the issue key that is shown in JIRA.

What we have done, and what is your best bet, is to develop a custom script that axtracts the issueID fromt he issue with script-runner and assign the result to a custom field and use this as your reference.

but can I also view on the summary of the issue??

Look at the issue as normal. The only thing that has changed is the key of it, and Jacques has explained a very good way to show the old, pre-move key. The rest of the issue is untouched by a move.

0 vote
Henning Tietgens Community Champion Mar 18, 2013

You can use ScriptRunner, create a Scripted Field as suggested by Jacques. The script is very easy

Select both number templates if asked.

The scripted custom field could be displayed in the issue navigator and on the view issue screen. Not on the same position as the key, but on the same screen.


Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

81 views 0 5
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