Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Accessing external links of a service desk via REST

ShlomoS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 1, 2024

Related to these:
https://support.atlassian.com/jira-service-management-cloud/docs/add-links-to-external-resources-in-your-portal/

A bit of background- I am creating a themed and toned down version of service desk for my organization. In-part of doing so, I must replicate the links and resources available through the Jira service desk UI onto my themed version of service desk.

There is a section in the service desk called "Related Resources" which contains links to external resources on the web. The resources are populated in the Jira Service Desk UI by the internal endpoint:
https://{company-subdomain}.atlassian.net/gateway/api/jira/help-sandook/cloudid/{cloudid}/api/v1/external-links/project/{projectId}

I cannot find a documented method for accessing this same data. I wouldn't mind using the above endpoint but it seems to require a cookie based jwt token (tenant.session.token) which I am not sure how to acquire- I am using basic auth for all the external facing servicedesk endpoints.

How can I retrieve the external links for my service desk via rest api?

2 answers

0 votes
Anusha A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 7, 2024

Unfortunately, it’s not possible to refresh this token directly within the code, so the best option for now is to use the internal API in the browser.

0 votes
Anusha A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 2024

Hi Shlomo,

Thanks for your question on community. 

We don’t have any public APIs available for external resources. You’ll need to use the existing internal endpoint that you’ve linked. That said, you can obtain the tenant.session.token from the Network tab under the Application section. Is that what you were looking for?

image-2024-10-04-14-47-57-701.png

Regards,

Anusha A

ShlomoS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 6, 2024

Hi Anusha,

Not exactly, I need a way to programmatically acquire the tenant.session.token since this token expires. The token must live within my application and im guessing it will need to be refreshed periodically.

Is there a way I can programmatically acquire the tenant.session.token?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events