Forums

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

Automatically Label Tasks if they are in the defined epics

Samed Torun
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2025

 

Hi all,

I want to automatically add a label to any task or story that is linked to certain epics in my project (“Product Development”).
I’ve tried setting up a Jira Automation rule with a scheduled trigger and using a JQL condition like these:

 

project = "Product Development" AND "Epic Link" in (PD-544, CRBN-31, PD-374, PD-570, PD-591, PD-543)

and

 

project = "Product Development" AND parent in (PD-544, CRBN-31, PD-374, PD-570, PD-591, PD-543)

I also tried using Epic names instead of keys.
But no matter what, I always get an error or a warning saying components are incompatible, or the query doesn’t work.

Has anyone been able to automatically label tasks/stories based on their Epic?

  • Is there something I’m missing with the JQL?

  • Should I be using a different field or approach (Jira Cloud, company-managed project)?

Would really appreciate screenshots or step-by-step instructions if you’ve solved this. Thanks!

2 answers

0 votes
Gor Greyan
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.
July 5, 2025

Hi, @Samed Torun

Welcome to the Atlassian Community!

This will work only for Company Managed projects; for Team-Managed ones, you can't use Epic Link.

If your project is company-managed, try this Automation.

Trigger: Scheduled -- > JQL--> project = "Product Development" AND "Epic Link" in (PD-544, CRBN-31, PD-374, PD-570, PD-591, PD-543)

Add a Condition: Issue Field --> IssueType is one of Story, Task

Add an Action:  Edit Issue --> Labels --> Add/Remove appropriate label.

Let me know if you have any questions.


0 votes
Marc - Devoteam
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.
July 4, 2025

Hi @Samed Torun 

Welcome to the community.

Whenever you ask for help with an Automation Rule it will help us to help you if you provide:

1. what type of project is this (e.g., company-managed, team-managed, etc.), 

2. images that show your complete rule.

3. images showing the details of any relevant actions/conditions/branches.

4. images showing the Audit Log details for the rule execution.

5. Explain where the issue is.

These questions are not for not willing to help, but to have community members understand on how automation works.

Suggest an answer

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

Atlassian Community Events