Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

changing the color of the created field

Good afternoon! tell me how you can change the color of one field, from the standard to red or greenСнимок экрана 2021-02-07 в 12.44.30.png


John Funk Community Leader Feb 07, 2021

Hi @A L  - I am not aware of anyway to change the color of a field in the display. 


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.

Like John Funk likes this

we could tell you how you managed to do it thank you in advance!



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


Capture d’écran 2021-02-08 à 11.47.21.png




Log in or Sign up to comment
Community showcase
Posted in Jira Core

How to manage many similar workflows?

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 ...

4,574 views 12 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you