How to get an issue id from the issue key using REST

MattS
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.
May 23, 2012

The standard "issue" resource seems to return JSON that doesn't include the issue id. Has anyone done this using the "fields" resource?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Lee Correll
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.
May 30, 2012

I'm using JIRA OnDemand, and I'm not seeing that problem. Using CURL/PowerShell:

$Array = .\curl.exe https://yourserver.jira.com/rest/api/latest/issue/[issuekey]

$Array = $Array | ConvertFrom-JSON

$Array.ID is the global ID for the issue key.

Maybe I'm not understanding what you're asking for.

0 votes
Deleted user July 17, 2012

/rest/api/2/issuetype returns issue type ids

0 votes
Jobin Kuruvilla [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.
May 23, 2012

Which version of JIRA is that? I can see id in JIRA 5 for http://docs.atlassian.com/jira/REST/latest/#id162192

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events