Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Apply different colors to Jira (Software DC) status

Viraj Sunthankar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2023

Hi All,

We wish to change the Jira issue status color other than the default colors (To Do - Grey, In Progress - Blue and Done - Green as per our color theme) for a particular project and /or issue type combination. We were able to partially achieve this by using the following Adaptavist Scriptrunner's Script Fragment script via 'Show a Web Panel' :

writer.write("""
<style>
    #opsbar-transitions_more {
        background-color: #FF0000;
        color: #000000;
    }
    #action_id_21 > a > div > div:nth-child(3) > span {
        background-color: #FF0000;
        color: #000000;
    }
</style>
""")

But this is working partially. The colors are working in the transitions section/dropdown. But as we are setting opsbar-transitions_more directly to red (#FF0000), irrespective of the color that I have set in #action_id_xx, the color of the current status and the color of the status in the transition dropdown are not matching if set differently. For e.g., I want the 'Waiting on Customer' status to be yellow, the transition dropdown displays it as yellow but the main status which is colored using {{#opsbar-transitions_more is set to red. PFA for more details. So can we conditionally add color in #opsbar-transitions_more to match the color in the transition dropdown. So in our eg, Waiting on Customer should show yellow in the transition dropdown and in the actual Jira issue status. 

color mismatch.png

1 answer

0 votes
Aron Gombas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 30, 2023

There are several apps to make issue "more colorful" based on their status, resolution, etc.

This one, it seems, does exactly what you try: 

https://marketplace.atlassian.com/apps/1216070/new-status-colors-pro-for-jira?hosting=datacenter&tab=overview

It is paid, but maybe the license fee is less than the value of your time used to build and maintain it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events