Getting old issue key

Raveena
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 4, 2025

I have migrated issues from one project to another.

I want to create an automation where my custom field in the new project gets populated with the old issue key.

I am using a scheduler and in edit issue action have used changelog.key.fromString which isn't working

2 answers

0 votes
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 4, 2025

Hi @Raveena  Welcome to Atlassian Community!

You can capture the old issue key using project automation,use trigger Issue Moved. 

Then capture old issue key using this smart value  : {{#changelog.Key}}{{fromString}} {{/}}

Screenshot 2025-02-04 at 7.52.37 PM.png

0 votes
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 4, 2025

Hi @Raveena and welcome to the community,

Once you have moved issues from one project to another the old issue key is not saved in the issue data. So you can't retrieve it via automation.

See https://yoursite.atlassian.net/rest/api/latest/issue/<issue-key>

If you go to the old-key/have links to the old key then you will be auto-redirected to the new key. So why do you want to store the old key in a customfield?

 

 

Suggest an answer

Log in or Sign up to answer