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.
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"
}
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.