URL to JIRA issue from id (not key)

Sylvain Chapeland August 20, 2012

Hello,

I'm writing some dynamic web pages to link to existing JIRA issue for which I keep the ID (e.g. 12197, as returned by the REST API) but not the KEY (e.g. MYPROJ-123).

I can link to the issue with http://my-jira-server/jira/browse/MYPROJ-123

I am looking for the equivalent URL using the ID

I tried things like http://my-jira-server/jira/browse/12197

but it does not work. I would be grateful if someone can point me to the right documentation. I failed to find it (including on the browse by key feature).

Thanks,

t.p

4 answers

1 accepted

0 votes
Answer accepted
Radu Dumitriu
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 20, 2012

AFAIK, there's no such URL to link issues to. What you can do if you do not fix it in the app you are writing:

Create a filter on Jira and if the URL matches your <base>/<issueid>, redirect to the <base>/<issuekey>

Sylvain Chapeland August 20, 2012

Thanks for the filter tip. I will anyway store the key and use it instead.

2 votes
Long Nguyen June 19, 2019

<base url>/issues/?jql=id=<issue ID> should work (as of June 2019)

example:

https://example.atlassian.net/issues/?jql=id=123456

0 votes
Séb P.
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 22, 2014
Long Nguyen June 19, 2019

it doesn't work anymore :(

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.
August 20, 2012

Unfortunately, You can't use the id to browse an issue. Why do you need that? Maybe there is another way to do what you are trying to do?

Sylvain Chapeland August 20, 2012

Thanks for your quick answer.

I keep the ID because it's the most convenient way to store a reference in my database which keeps tracks of some automatically created issues (using REST API). Also, it looks to be the primary key for an issue, even if it is not displayed.

Fine, I will cache the key string as well to display URL shortcuts to JIRA.

Suggest an answer

Log in or Sign up to answer