自動化 | エピックで特定のラベルが追加/削除されたら、その子でも同じように更新
プラットフォームの注記: Cloud のみ - This article only applies to Atlassian apps on the クラウド プラットフォーム上のアトラシアン製品にのみ適用されます。
要約
この記事では、次の自動化シナリオについて説明します。
プロジェクト内のエピックで特定のラベル (たとえば、TEST) を追加または削除すると、その子でもラベルが追加または削除されます。
ソリューション
トリガー : フィールド値の変更 - ラベル用
条件 1 : 課題フィールド条件 - 課題タイプがエピックと等しいこと
条件 2 : If (条件) - Else (それ以外の場合) ブロック
「テスト」ラベルが追加されている場合は、 ブランチを作成して子課題のリストを見つけ、それらすべてにラベル「TEST」を追加します。
その他、"Test" ラベルが削除されている場合は、 ブランチを作成して子課題のリストを見つけ、それらすべてからラベル "Test" を削除します。
ルールのスクリーンショット




ルール JSON ファイル
{
"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"
}
]
}更新日時: September 25, 2025
この内容はお役に立ちましたか?
さらにヘルプが必要ですか?
アトラシアン コミュニティをご利用ください。