I've found in the JIRA API Docs the class LookAndFeelBean, but I can't find a way to get the primary custom color of the JIRA instance using that. Is there a way to get the color, in any form, using Groovy/Java?
What are you considering the primary custom color? The top menu's background color?
Any of the colors listed on the Look and Feel page on JIRA, but primarily I want to get the color of the "Header Background Color"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.config.properties.LookAndFeelBean
def applicationProperties = ComponentAccessor.getApplicationProperties()
def LookAndFeelBean lf = LookAndFeelBean.getInstance(applicationProperties)
return lf.getTopBackgroundColour()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Exactly what I needed, thanks!
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.