Issue ID and id are they both same or different ?

Sai manoj kumar_ Kolisetty
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 28, 2025

The Issue ID in the 1st screen shot is same as the id field that we got as a part of response response to get issues API call in 2nd screenshot 

Screenshot 2025-02-28 144221.pngScreenshot 2025-02-28 144327.png

2 answers

1 accepted

4 votes
Answer accepted
Pasam Venkateshwarrao
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.
February 28, 2025

@Sai manoj kumar_ Kolisetty  ok got it 

 

The id field is the number that represents the issue in the database, what you want to do is use the key instead, like:

key != ABC-1234

And that should work. As a side note, you can view the ID of the issue by doing:

/rest/api/2/issue/ABC-1234

And in the JSON Repsonse, you'll see:

{
    "id": "81250",
    "key": "ABC-1234",
    ...
}

So if you really wanted to, you could then do:

id != 81250

 

 

 

Sai manoj kumar_ Kolisetty
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 28, 2025

Thanks for clarification

0 votes
Pasam Venkateshwarrao
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.
February 28, 2025

Hi @Sai manoj kumar_ Kolisetty 

 

Welcome to the community,As per your screenshot  Issue id is description/summary right  so need to use ID of that field 

 In the 2nd Screen shot ID is project id

Hope this help

Sai manoj kumar_ Kolisetty
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 28, 2025

Hi @Pasam Venkateshwarrao thanks for reply 
i think you misinterpreted it , actually the above screen shot is not an issue list , it's fields API (field metadata) fetched using <JIRA_END_POINT>/rest/api/2/field 

 

and the second screenshot is list of issues fetched via (GET /rest/api/2/issue/{issueIdOrKey}) and id here is specific to issue 

 

So now what my question is:

Is the issue ID I got in the fields list is same as id that has come with issue's API repsonse ?

Suggest an answer

Log in or Sign up to answer