Hi,
I did it one time with Scriptrunner (listener if i remember well). But it was a customfield and i was able to change only the color of the value field not the customfield name on the left side.
Hi,
I used a script fragment and wrote this code on the provider class/script field:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
//def issueManager = ComponentAccessor.getIssueManager()
def issue = context.issue as Issue
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cField = customFieldManager.getCustomFieldObject("your customfield Id")
def cFieldValue = issue.getCustomFieldValue(cField)
def color = ""// use hex color or color name
writer.write("<script>var css = '#YOUR CUSTOMFIELD ID-val { color: white;background-color: ${color}; font-weight: bold; border-bottom: 2px solid ${color}; }', head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style');head.appendChild(style);style.appendChild(document.createTextNode(css));</script>")
In the Location field select "atl.jira.view.issue.left.context"
It will display something like this