Forums

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

Using Automation in Jira to add issue/"Work item" to an Epic

Automation for Jira

Request:

In some cases there are specific work items expected to be added to a specific epic.  This could be based on a custom field value, label, component, etc.  This article will show an example automation rule for achieving this.

In this case, users have already created an Epic, and the goal is to ensure that any newly created work item is automatically assigned to that Epic.

The solution lies in utilizing Automation for Jira.

First way:

  • To begin, we need to establish a trigger, which in this instance will involve creating a work item.

Automation One.png

  • Ensure to include a condition that verifies whether the newly created work item is not classified as an Epic and that the Parent field is empty.

Automation Two.png

  • We then update the parent field of the work item to include an active Epic. Any new work item created will automatically be associated with the Epic specified in the parent field.

Automation Four.png

Second way:

Work items have already been created, and we have either added a component, a label, or a custom field of your choice. In this example, I have added a component.

Additionally, I created an Epic using Automation. The JQL query verifies that the issue type is an Epic, is open, and has an associated component.

Automation Five.png

Within the branch, I am executing a JQL query to retrieve any work items that share the same component as the Epic mentioned above.

Always validate your queries to ensure accuracy and relevance.

Automation Six.png

The final step involves editing the work items returned by the JQL and updating the parent field to reflect the Epic that initiated the Automation rule.

I hope you found this article enjoyable and insightful.

We would love to hear your thoughts, so please feel free to share your feedback!

3 comments

Dave Liao
Community Champion
May 22, 2025

@Tinker Fadoua - Thanks for sharing such a clear article! 🙌🏻 

You've reminded me to re-visit Atlassian's automation template library...

Like Tinker Fadoua likes this
Tinker Fadoua
Community Champion
May 23, 2025

@Dave Liao Thank you for sharing your feedback, it is greatly appreciated!

AS
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.
June 11, 2025

Amazing automation to save time and keep issues linked with Epic.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events