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:
Hello @dataservice ,
As you noted the formatting for the issue URL is always going to be in the format:
https://<user’s subdomain>.atlassian.net/browse/<issueKey>
So I would recommend in your integration to set up output of the known value variables being base url and the issue key and combine them with the static value per the input URL format noted above as a hyperlink.
Example:
"https://"<$base_url> + "/browse/" + <$issue-Key>
You could pull the baseURL variable value from the systeminfo endpoint as well to use in formatting for a variable to combine with the other values:
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.