Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the logo through the API

Adrian Fahrbach May 28, 2024

Is it possible to get the logo of a Jira instance through the API?

When I request resources through the OAuth endpoint (`/oauth/token/accessible-resources`) I do get an avatar url. However that image seems to always be a placeholder image instead of the logo of the requests resource. I guess this is some kind of legacy setting?

The logo of the Jira instance should be available through the application properties endpoint as `jira.lf.logo.url`, but it looks like the setting (and others) can't be read from non-admin users. The settings obviously are public, so am I doing something wrong here? I found this post with a similar issue.

1 answer

1 accepted

1 vote
Answer accepted
Sunny Ape
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.
May 29, 2024

The logo of the Jira instance should be available through the application properties endpoint as `jira.lf.logo.url`,

Yep, that endpoint will indeed tell you what the value of the jira.lf.logo.url property key is... and it's always the same value:

 

{
  "id": "jira.lf.logo.url",
  "key": "jira.lf.logo.url",
  "value": "/jira-logo-scaled.png", <-- This never changes
  "name": "jira.lf.logo.url",
"type": "string (url)",
"defaultValue": "/images/icon-jira-logo.png"

}
.... that's because the name of the logo file and the path to it never changes either:
https://{{YourInstance}}.atlassian.net/jira/jira-logo-scaled.png

but it looks like the setting (and others) can't be read from non-admin users

Yep, exactly as it says in that endpoint's documentation:

  Permissions required: Administer Jira global permission.

But, since you now know that the name of logo and the path to it never changes, you don't need to interact with that REST API endpoint to ask it for that information :)

Adrian Fahrbach May 29, 2024

Ah I see. Thank you very much!

Suggest an answer

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

Atlassian Community Events