I’m using Jira Cloud REST API to get a summary of a given issue, authorizing users via OAuth 2.0.
For example, to get all fields of issue “PROJ-35” I’m calling
https://api.atlassian.com/ex/jira/<cloud_id>/rest/api/2/issue/PROJ-35
.
My problem is that I also need to provide an absolute URL of the issue, pointing straight to Jira website (e.g. https://<my_company>.atlassian.net/browse/PROJ-35
).
Is there a way to get the Jira hostname, or just the portion I’m missing, somehow via REST API?
For Jira Data Center/Server this is not an issue, as REST API are called on the very same hostname as Jira website.
Thanks in advance for any help!