When using the rest api with oauth2, we access endpoints like so:
https://api.atlassian.com/ex/jira/<cloud-id>/rest/api/2/issue/<issueIdOrKey>
As part of the integration we're building, we'd like to offer our users a link back to the issue on Jira Cloud's site, which from what I've seen is a link that looks like this:
https://<user’s subdomain>.atlassian.net/browse/<issueKey>
Is there any way to get this link via the rest api? If not, is there any way to get the user's subdomain so that we can construct this url ourselves?
Things I've tried:
- The self field on issues- is in the api format, not the browser format
- Looked for some other "link" or "url" field among the list of all fields in our test instance. I couldn't find any that had this information
- Looked through the api documentation to find an endpoint for either the link or the user's subdomain. No luck.