Forums

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

Issue ID vs Issue Key

Joe Doherty
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!
August 28, 2014

I'm creating a CSV file for importing into JIRA and I noticed I can choose between Issue Key and Issue ID to map values. What is the difference? Are Issue Keys used for standard issues and Issue IDs used for sub-tasks?

3 answers

1 accepted

5 votes
Answer accepted
Nic Brough -Adaptavist-
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.
August 28, 2014

The issue key can change, the ID is immutable. E.g. I create issue ABC-123 with an ID of 10105, and move it to project XYZ, it'll become XYZ-789, but the ID remains 10105

BenP
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.
September 23, 2015

is this still valid with ondemand & clustering?

Nic Brough -Adaptavist-
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.
September 24, 2015

Yes.

Junyouz July 14, 2021

@Nic Brough -Adaptavist- Is there any method we can get "ABC-123" thru rest api or any other method if the issue moved as XYZ-789? Thanks!

Nic Brough -Adaptavist-
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.
July 14, 2021

Yes, if you read an issue (via UI or REST), you'll get the history, where any change of key is recorded.

Junyouz July 14, 2021

Thanks, the only way is from the history, there is no specific field for returning this?

Nic Brough -Adaptavist-
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.
July 14, 2021

No, because it's an uncommon event and not useful for 99.99% of issues.  And it's in the history, so you don't need a field for it.

2 votes
Sumit Kumar
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.
August 28, 2014

issue keys and ids are automatically generated by Jira during import.

Do not map those values in CSV for new issues unless you want to update some custom fields for existing project issues

Nic Brough -Adaptavist-
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.
August 28, 2014

Er, not quite. If you use one of them, it will cause your import to try to treat the CSV as an update on an existing issue, rather than create a new one.

Sumit Kumar
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.
August 28, 2014

I modified my comment. :)

1 vote
Lindsey George
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!
January 13, 2016

On that note of treating a CSV as an update and on an existing issue rather than creating a new one. I have the issue key correlating to existing tickets and when I upload, I check "map exact field" but it is still creating new tickets. 

Any insights on how I am mapping this incorrectly?

Pankaj Mehta October 10, 2018

Hi Lindsey ... 

Just wondering was this resolved, if so, how?

Thanks

Like Stephane Leroy likes this

Suggest an answer

Log in or Sign up to answer