Automation: Epic Labels to tasks
Asked by Harry Tye:

Hi there,

I am new to automation in Jira. I see examples in this community to do this but it doesn't work for me.

I will show my example below. Also is the theory once you add an automation that it runs automatically? Like I label an Epic and it then should be added to each task in it?

Below doesn't work for me.

Help!

![epicautomation.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/183766iDBE0B2EC7DA376A5/image-size/large?v=v2&px=999 "epicautomation.PNG")


Answers:
author: Mykenna Cepek
body: The rule needs to be **enabled** in order to run. There's a little switch that shows green in the top-right corner when a rule is enabled (when viewing the Rule Details).

The rule also has to be **configured for the Jira Project(s)** where these Epics and Story-level issues are located.

You should also **look in the Audit Log** to see if the rule ran, and if so whether there were any warnings or errors.

If all that looks ok, then please post a screenshot showing the configuration of your "Edit Issue" action.

Also, instead of the "If issue matches JQL" component, you should probably be using an "Issue Fields Condition" checking the "Issue Type". While the former will work (if configured correctly), the "Issue Fields Condition" is much more efficient (no JQL execution required).

comments: author: Harry Tye
body: Thanks for the reply.

Rules are enabled

I also see it configured for Jira Projects.

Audit log looks like it ran successfully and even shows the Epic ID and then it displayed the tasks but didn't change any of them.

Once I changed the "Issue type equals" then it doesn't run at all as the error says the Epic didn't meet the criteria.

![epicautomation2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/183779i9B3411452EF00D72/image-size/large?v=v2&px=999 "epicautomation2.PNG")

Here was the successful audit log from my initial automation using the JQL that still didn't update the labels on the tasks:

![epicautomation3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/183780iFF582244D941B316/image-size/large?v=v2&px=999 "epicautomation3.PNG")


author: Harry Tye
body: Sorry quick update. I changed Issue Type equals Epic.

Audit says success.

But still no labels updated.

Thoughts?

![epicautomation4.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/183784i3681A0C785D74DC1/image-size/large?v=v2&px=999 "epicautomation4.PNG")


author: Stefan Salzl
body: Hi [@Harry Tye](/t5/user/viewprofilepage/user-id/1502456)

How did you configure the final action? The action needs to be told "how the issue should be editted" (eg. see screenshot, guess that fits your requirement)

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/183792i444DC2AB63975CB3/image-dimensions/336x150?v=v2 "image.png")

Best

Stefan


author: Harry Tye
body: Thanks that was it. It was blank. Which is why i got no errors but nothing was completed.

I appreciate both your help.


author: Stefan Salzl
body: Awesome. Happy to know your solution is working now ;)

Best  
Stefan


author: Mykenna Cepek
body: That's why I originally suggested you "post a screenshot showing the configuration of your 'Edit Issue' action."

I'm glad you were able to figure it out.