Hi,
When I move an issue between projects (eg. Project A --> Project B), Jira reassigns a new issue id, based on the new project's issue numbering.
eg. A-1234 --> B-11
Jira redirects the user automatically when you search using the old issue id. I would like to know if there is a way to retrieve all the issue IDs that my issue had between projects. I would like to see in my scenario:
"A-1234, B-11" or only "A-1234"
Thank you in advance for your suggestions
Dimitris
Hi Dimitris,
remembering from some earlier requirements it should still be possible to get the Key into a Scripted Field (this, though, would require an App called Script Runner) so at least you can display the former key in a custom field.
https://community.atlassian.com/t5/Jira-questions/Display-previous-key-of-moved-issue/qaq-p/406633
Needed code seems to have changed several times over the years but probably a start.
That means, like Jack, already said - you are restricted to how Jira works but could report the issue key in a custom field.
Regards,
Daniel
You should be able to get this using the API call:
<server address>/rest/api/2/issue/<issue key>?expand=changelog
In the JSON that is returned, you'll see a changelog section, with a structure like this, which indicates the change in project and change in key.
"changelog": {
...
"histories": [
{
...
"items": [
{
"field": "Key",
"fieldtype": "jira",
"from": null,
"fromString": "A-1234",
"to": null,
"toString": "B-11"
},
{
"field": "project",
"fieldtype": "jira",
"from": "...",
"fromString": "A",
"to": "...",
"toString": "B"
}
]
}
]
...
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This cannot be achieved. The issue will be relabeled to be the latest issue number in the new project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Today only! Share what you’re the most excited about for Team ‘25 or just dance out the beginning of a new quarter with us.
Comment the postOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.