You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Good afternoon! tell me how you can change the color of one field, from the standard to red or green
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
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events