How to get the actual URL for a given Issue?

Hi!

I’m trying to get a valid navigable link to share an Issue and link back from another platform. I assumed that the response from the Get Issue endpoint from the API would contain such a link, but is not the case.

The docs state that the issue.self property on the response should contain something like:

"self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"

Which would be exactly what I need, but the reality is that it contains the following:

"self": "https://api.atlassian.com/ex/jira/c463d7e7-74f8-4252-a2f3-bd89efd0e9c7/rest/api/3/issue/10000"

And that is not a valid navigable link to share an issue on an external platform.

Any ideas?

Hello @martin.peverelli

The REST API documentation is written from the perspective of an app using Basic auth, hence the reason it says that the self object’s path will be returned in the first format. If your app is using OAuth auth, then the self object’s path is returned in the corresponding format for that context.

IE, the self path returned always matches the context of the auth method your app is using.

When you say you want the “actual URL” or the “navigable link” are you saying you want a URL that a human can click on to open that Work Item in the UI? If so, then all you need for a clickable URL is the ID of the Work Item, then append that to the end of the Base URL:

https://{JiraInstance}.atlassian.net/browse/{IssueID}

1 Like