Automation | When a specific Label is added/removed on EPIC, update the same on its Child

Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.

Summary

In this article, the following Automation scenario is covered:

When a specific Label (say- TEST) is added or removed on any EPIC in a project, the Label should get added or removed on its Children too.

Solution

Trigger : Field Value Changed - for Label

Condition 1 : Issue Field Condition - Issue Type should be equal to EPIC

Condition 2 : If - Else Block

  • If the "Test" label is added, Branch out to find the list of child issues and add the Label 'TEST' on all of them.

  • Else, if the "Test" label is removed, Branch out find the list of child issues and remove the Label 'Test' from all of them.

Screenshots of the Rule:

Image 1
Image 2
Image 3
Image 4

Rule JSON file:

{ "cloud": true, "rules": [ { "id": 13061853, "clientKey": "a45bcd14-5f5b-3a4c-b6ae-1c78ba457f28", "name": "Add or remove a specific label from Parent to child ", "state": "DISABLED", "description": "", "authorAccountId": "6113d26fa539cb0068ffd9d4", "actor": { "type": "ACCOUNT_ID", "value": "557058:f58131cb-b67d-43c7-b30d-6b58d40bd077" }, "created": 1686660759343, "updated": 1686662319715, "trigger": { "id": "274736470", "component": "TRIGGER", "parentId": null, "conditionParentId": null, "schemaVersion": 2, "type": "jira.issue.field.changed", "value": { "changeType": "ANY_CHANGE", "fields": [ { "value": "labels", "type": "field" } ], "actions": [] }, "children": [], "conditions": [], "connectionId": null }, "components": [ { "id": "274736471", "component": "CONDITION", "parentId": null, "conditionParentId": null, "schemaVersion": 3, "type": "jira.issue.condition", "value": { "selectedField": { "type": "ID", "value": "issuetype" }, "selectedFieldType": "issuetype", "comparison": "EQUALS", "compareValue": { "type": "ID", "modifier": null, "value": "10000", "multiValue": false, "source": null } }, "children": [], "conditions": [], "connectionId": null }, { "id": "274736472", "component": "CONDITION", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.condition.container.block", "value": null, "children": [ { "id": "274736473", "component": "CONDITION_BLOCK", "parentId": "274736472", "conditionParentId": null, "schemaVersion": 1, "type": "jira.condition.if.block", "value": { "conditionMatchType": "ALL" }, "children": [ { "id": "274736476", "component": "BRANCH", "parentId": "274736473", "conditionParentId": null, "schemaVersion": 1, "type": "jira.issue.related", "value": { "relatedType": "stories", "jql": "", "linkTypes": [], "onlyUpdatedIssues": false, "similarityLimit": 40, "compareValue": 0 }, "children": [ { "id": "274736477", "component": "ACTION", "parentId": "274736476", "conditionParentId": null, "schemaVersion": 10, "type": "jira.issue.edit", "value": { "operations": [ { "field": { "type": "ID", "value": "labels" }, "fieldType": "labels", "type": "ADDREMOVE", "value": { "ADD": [ { "type": "NAME", "value": "test" } ], "REMOVE": [] } } ], "advancedFields": null, "sendNotifications": true }, "children": [], "conditions": [], "connectionId": null } ], "conditions": [], "connectionId": null } ], "conditions": [ { "id": "274736474", "component": "CONDITION", "parentId": null, "conditionParentId": "274736473", "schemaVersion": 1, "type": "jira.comparator.condition", "value": { "first": "{{fieldChange.toString}} ", "second": "test", "operator": "CONTAINS" }, "children": [], "conditions": [], "connectionId": null }, { "id": "274736475", "component": "CONDITION", "parentId": null, "conditionParentId": "274736473", "schemaVersion": 1, "type": "jira.comparator.condition", "value": { "first": "{{fieldChange.fromString}} ", "second": "test", "operator": "NOT_CONTAINS" }, "children": [], "conditions": [], "connectionId": null } ], "connectionId": null }, { "id": "274736478", "component": "CONDITION_BLOCK", "parentId": "274736472", "conditionParentId": null, "schemaVersion": 1, "type": "jira.condition.if.block", "value": { "conditionMatchType": "ALL" }, "children": [ { "id": "274736481", "component": "BRANCH", "parentId": "274736478", "conditionParentId": null, "schemaVersion": 1, "type": "jira.issue.related", "value": { "relatedType": "stories", "jql": "", "linkTypes": [], "onlyUpdatedIssues": false, "similarityLimit": 40, "compareValue": 0 }, "children": [ { "id": "274736482", "component": "ACTION", "parentId": "274736481", "conditionParentId": null, "schemaVersion": 10, "type": "jira.issue.edit", "value": { "operations": [ { "field": { "type": "ID", "value": "labels" }, "fieldType": "labels", "type": "ADDREMOVE", "value": { "ADD": [], "REMOVE": [ { "type": "NAME", "value": "test" } ] } } ], "advancedFields": null, "sendNotifications": true }, "children": [], "conditions": [], "connectionId": null } ], "conditions": [], "connectionId": null } ], "conditions": [ { "id": "274736479", "component": "CONDITION", "parentId": null, "conditionParentId": "274736478", "schemaVersion": 1, "type": "jira.comparator.condition", "value": { "first": "{{fieldChange.fromString}} ", "second": "test", "operator": "CONTAINS" }, "children": [], "conditions": [], "connectionId": null }, { "id": "274736480", "component": "CONDITION", "parentId": null, "conditionParentId": "274736478", "schemaVersion": 1, "type": "jira.comparator.condition", "value": { "first": "{{fieldChange.toString}} ", "second": "test", "operator": "NOT_CONTAINS" }, "children": [], "conditions": [], "connectionId": null } ], "connectionId": null } ], "conditions": [], "connectionId": null } ], "canOtherRuleTrigger": false, "notifyOnError": "FIRSTERROR", "projects": [], "labels": [], "tags": [ { "id": 34436089, "tagType": "IS_RULE_UPDATED", "tagValue": "true" } ], "ruleScope": { "resources": [ "ari:cloud:jira:ca88453b-2d9b-4b56-8894-54cb6d722b19:project/10032" ] }, "writeAccessType": "UNRESTRICTED", "collaborators": [], "billingType": "NORMAL" } ] }

Updated on September 25, 2025

Still need help?

The Atlassian Community is here for you.