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"
Try
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.config.properties.LookAndFeelBeandef applicationProperties = ComponentAccessor.getApplicationProperties()def LookAndFeelBean lf = LookAndFeelBean.getInstance(applicationProperties)return lf.getTopBackgroundColour()
Exactly what I needed, thanks!
It looks like you're new here. Sign in or register to get started.