Getting Invalid ID while getting commits for a jira issue

Parthiban Periasami August 22, 2017

Hi,

I want to get the list of commits for a jira bugId.

I am doing [GET], https://<instance>/rest/dev-status/1.0/issue/detail?issueId=GE-16777&applicationType=stash&dataType=repository

Response:

{
"errorMessages": [
"An invalid ID was provided: 'GE-16777'"
],
"errors": {}
}

Note: GE-16777 is of type SprintBug and i am able to get other details via

https://<instance>/rest/api/2/issue/GE-16777

2 answers

2 votes
Dan Gerstein August 3, 2018

@Parthiban PeriasamiI am not sure if this helps you, but your 'GE-19777' is actually NOT an issue ID. This was very confusing for me to figure out, but if you go to your GE-19777 issue and examine the Edit button, for example, you will see a very different URL being used for issueId (something that's all numbers).

I am not currently sure how to locate the unique identifier from the human-readable (and REST-browsable) GE-19777, but I will update if it can be discerned.

0 votes
Dan Gerstein August 3, 2018

I am having the same issue. The issue is valid when viewed through /rest/api/2/issue/{issueId} but fails in the dev-status case. Any resolution?

Suggest an answer

Log in or Sign up to answer