Forums

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

JSON: Declare an epic color as an object

Pierre Heinrich August 19, 2020

Currently i am writing an automation which should change the epic color of a task from an Next-Gen Project.

I was not able to find the key word for an "epic color". How do i set this if i want to declare a certain color via JSON?

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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 20, 2020

Hi @Pierre Heinrich 

I experimented and was able to get is to work using the custom field name representing epic color...

{
"fields": {
"customfield_10011": "ghx-label-9"
}
}

Here is another community post which lists the color names, although I recommend experimenting to confirm:

https://community.atlassian.com/t5/Jira-Software-questions/What-are-the-standard-Epic-Colors-that-I-can-use-in-a-search/qaq-p/243666

 

Best regards,

Bill

Pierre Heinrich August 23, 2020

Hi @Bill Sheboy

thank you so much for the reply. Your solutions worked for me nearly the same way. Inside the JSON declaration there where other codes for the "customfields". The rest was really the same way to code. Here my solution:

{
"fields": {
"customfield_11915": "blue"}
}

Best regards,

Pierre

Like Bill Sheboy likes this
Bill Sheboy
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 24, 2020

Awesome!  I am glad to hear that worked and that the human-readable color names worked.

__Bill

Like Pierre Heinrich likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events