Forums

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

Any direct method to change Epic Name background color depending on Components field

Pallavi Deore March 16, 2022

Hello All,

Is there any way to change Epic Name background color basis the component field value.

Please provide me the ways we can achieve this.

 

Regards

Pallavi 

1 answer

0 votes
Mark Segall
Community Champion
March 16, 2022

Hi @Pallavi Deore 

Confirming the use case... You want the epic color to change when a component is added to it?  If so, yes this is possible, but you'll need to do some advanced field editing as automation does not support updating the epic color field through the UI.  Here's a quick rule I threw together:

2022-03-16_06-08-20.png

For copy/paste, here's the field setting (note you'll need to look up the custom field value for epic color in your environment):

{
"fields": {
     "customfield_100XX": "ghx-label-1"
     }
}

My automation is simple to provide what's possible. You could use If/Else conditions to make it more complex.

I hope this helps.

Pallavi Deore March 23, 2022

Hi @Mark Segall 

Thank you for your response.

I tried this jira automation script with many conditions but it fails somewhere.

I wanted to have epic colour red when component is "Test Component" and yellow colour when component is "Test Component New"

But if component is empty still it assign any colour when epic is created.

Script is not working as expected in my Jira Software server.

EPIC colour.PNG

 

Can you please tell me where I make mistake.

Pallavi Deore March 23, 2022

Hello,

Anything wrong in above script....

It allocate different colours to EPIC name even when component field is blank and epic is created.

Suggest an answer

Log in or Sign up to answer