Unable to get application link using hardcoded application id

Sonia
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!
December 3, 2024

 

When we have linked multiple confluence links linked to JIRA from application linking tab, the how we fetch the specific Application Link using 

 

getApplicationLink(ApplicationId id) if we have the hardcoded id fetched from url.

Example:

ID :  f07bbf39-549b-3389-a337-1f171ba25s33

1 answer

0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2024

Hi @Sonia 

Try with Jira's REST API to retrieve a list of all configured application links.

You can do this by running the command

curl -s -u "username:password" https://<jira-base-url>/rest/applinks/3.0/applinks | jq '.[] | .id', which will return a list of application link IDs. Verify that your specific ID is included in the list.

 

  1. Then, use a JSON parsing tool like jq to locate the application link matching the specified ID. Run the command
  • curl -s -u "username:password" https://<jira-base-url>/rest/applinks/3.0/applinks | jq '.[] | select(.id == "f07bbf39-549b-3389-a337-1f171ba25s33")' to filter the response and show details for the application link with the matching ID.

 

  • Finally, extract and use the application link details as required. For example, you can extract the name of the application link by running the command
  • curl -s -u "username:password" https://<jira-base-url>/rest/applinks/3.0/applinks | jq '.[] | select(.id == "f07bbf39-549b-3389-a337-1f171ba25s33") | .name'.

Also, it is recommended to verify that the hardcoded Application Link ID (f07bbf39-549b-3389-a337-1f171ba25s33) is correct and corresponds to an existing application link configured in Jira.

You can check the "Application Links" section in Jira's administration settings to confirm.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Suggest an answer

Log in or Sign up to answer