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!
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.
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.
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.