Hey Community!
I want that if a label has value X the EPIC color is set to color X.
There is no predefined field to change the EPIC color via automation. After hours of research and many failed automations I now turn to you.
I think it should be easy to do this by using additional fields, I think I just need the command to set the color of the current EPIC to X. But how can I do that?
I was able to use Automation for Jira today for my use case, which was to change the color of the Epic when a specific custom field (SoW Signed) was changed to "Yes."
I discovered that there was already a custom field called "Epic Color" and I found the color codes online.
I'll list them here for simplicity:
ghx-label-1 Black
ghx-label-2 Dark Yellow
ghx-label-3 Light Yellow
ghx-label-4 Dark blue
ghx-label-5 Dark Aqua
ghx-label-6 Light green
ghx-label-7 Light Purple
ghx-label-8 Dark purple
ghx-label-9 Light Pink
ghx-label-10 Light Blue
ghx-label-11 Light aqua
ghx-label-12 Light gray
ghx-label-13 dark green
ghx-label-14 dark coral/red(ish)
Yes, this would be the preferred solution now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great automation.
Update //19-05-2022 noticed that the customfield number has changed (at least for our instance) and the colour labels do not match. So you may want to check these. But the solution is still valid.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I followed the script above, replacing it with the custom field id number for Epic Color in our instance, but it kept erroring out.
I then replaced "customfield_10013" (the custom field number for our instance of Jira) with "Epic Color," and it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks @Josh Meyer for pointing that out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This did not work for me. Do I need to unlock the field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What did not work? Did you get an error? What happened?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey everyone :)
I asked myself the same question today. Did I understand it correctly that there is no way to set a Epic color for a individual label? Or has something changed in the meantime?
Thank you so much.
Beste Regards
Tanja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jacques,
Note JMWE can perform the action only during a transition. With JMWE in your instance, add the "Set field value" post-function to the transition to set the Epic Color field to X. Select the conditional execution checkbox in the post-function configuration and check the labels.
{{ issue.fields.labels.includes("X") }}
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's also possible to add "Issue color" to the Create-Screen and to add the following to the automation:
{
"fields": {
"Issue color": "orange"
}
}
Then you don't have to apply the label to color mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Outdated answers here, this one worked for me: https://community.atlassian.com/t5/Jira-Software-questions/Use-automation-to-update-next-gen-project-epic-issue-color-value/qaq-p/1543747
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jacques - Welcome to the Atlassian Community!
I don't think you are going to be able to do that using Automation for Jira. You could do it using a Post Function on a Transition in the workflow however using the JMWE add-on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @John Funk ,
thank you for your fast answer.
Can you describe this in more detail? I don't understand the procedure.. That would be really great!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You would need to add the Jira Miscellaneous Workflow Extensions (JMWE) from the Atlassian Marketplace. There is a charge for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is also an interesting question for me too!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.