Change the pkey with the issueID

Hi...

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...

regards,

Marco

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

issue.id

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.

Henning

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...

221 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