自動化ルール | イニシアチブ タイプの課題から別のプロジェクトのエピック課題にフィールド値をコピーする

プラットフォームの注記: Cloud のみ - This article only applies to Atlassian apps on the クラウド プラットフォーム上のアトラシアン製品にのみ適用されます。

要約

このナレッジベース記事では、あるプロジェクト課題から別のプロジェクト課題にフィールドの値をコピーするための自動化ルールを作成する方法について、ガイダンスを提供します。説明用に示されている例では、特定の課題タイプとフィールド名を使用していますが、具体的なニーズに合わせて調整できます。

この記事で検討されている例: 'エピック' 課題 (プロジェクト A に所属) の 'Parent link' フィールドでタイプ 'イニシアチブ' の課題 (プロジェクト B に所属) が選択されている場合、'Test' カスタム フィールドの値 (空白でない場合) をイニシアチブからエピック課題にコピーします。

ソリューション

この自動化ルールの設定方法を 1 つご紹介します。

トリガー: フィールド値の変更 - Parent Link 条件: 課題フィールドの条件: プロジェクト = A ブランチ ルール/関連課題: 関連課題のタイプ: エピック (親) 課題フィールドの条件: プロジェクト = B 課題フィールドの条件: Test (カスタム フィールド名) が空ではない アクションを追加: 課題を編集: 親から "Test" をコピー

自動化ルール構成用の JSON ファイルは次のとおりです。

{ "cloud": true, "rules": [ { "id": 15254897, "clientKey": "fcb18f79-08d6-35bd-9c47-b1e204f45645", "name": "Copy BRAND(CRM) from CRM TO MAR", "state": "DISABLED", "description": "", "authorAccountId": "6362284b01c2ff842c19db70", "actor": { "type": "ACCOUNT_ID", "value": "557058:f58131cb-b67d-43c7-b30d-6b58d40bd077" }, "created": 1696912213613, "updated": 1696912737927, "trigger": { "id": "333515186", "component": "TRIGGER", "parentId": null, "conditionParentId": null, "schemaVersion": 2, "type": "jira.issue.field.changed", "value": { "changeType": "ANY_CHANGE", "fields": [ { "value": "Parent Link", "type": "fieldName" } ], "actions": [] }, "children": [], "conditions": [], "connectionId": null }, "components": [ { "id": "333515187", "component": "CONDITION", "parentId": null, "conditionParentId": null, "schemaVersion": 3, "type": "jira.issue.condition", "value": { "selectedField": { "type": "ID", "value": "project" }, "selectedFieldType": "project", "comparison": "EQUALS", "compareValue": { "type": "ID", "modifier": null, "value": "10040", "multiValue": false, "source": null } }, "children": [], "conditions": [], "connectionId": null }, { "id": "333515188", "component": "CONDITION", "parentId": null, "conditionParentId": null, "schemaVersion": 3, "type": "jira.issue.condition", "value": { "selectedField": { "type": "NAME", "value": "Brand (MAR)" }, "selectedFieldType": "com.atlassian.jira.plugin.system.customfieldtypes:select", "comparison": "EMPTY", "compareValue": null }, "children": [], "conditions": [], "connectionId": null }, { "id": "333515189", "component": "BRANCH", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.issue.related", "value": { "relatedType": "epic", "jql": "", "linkTypes": [], "onlyUpdatedIssues": false, "similarityLimit": 40, "compareValue": 0 }, "children": [ { "id": "333515190", "component": "CONDITION", "parentId": "333515189", "conditionParentId": null, "schemaVersion": 3, "type": "jira.issue.condition", "value": { "selectedField": { "type": "ID", "value": "project" }, "selectedFieldType": "project", "comparison": "EQUALS", "compareValue": { "type": "ID", "modifier": null, "value": "10015", "multiValue": false, "source": null } }, "children": [], "conditions": [], "connectionId": null }, { "id": "333515191", "component": "CONDITION", "parentId": "333515189", "conditionParentId": null, "schemaVersion": 3, "type": "jira.issue.condition", "value": { "selectedField": { "type": "NAME", "value": "Brand (MAR)" }, "selectedFieldType": "com.atlassian.jira.plugin.system.customfieldtypes:select", "comparison": "NOT_EMPTY", "compareValue": null }, "children": [], "conditions": [], "connectionId": null } ], "conditions": [], "connectionId": null }, { "id": "333515192", "component": "ACTION", "parentId": null, "conditionParentId": null, "schemaVersion": 10, "type": "jira.issue.edit", "value": { "operations": [ { "field": { "type": "NAME", "value": "Brand (MAR)" }, "fieldType": "com.atlassian.jira.plugin.system.customfieldtypes:select", "type": "COPY", "value": { "copyOptions": [], "sourceIssue": "parent", "sourceField": { "type": "NAME", "value": "Brand (MAR)", "fieldType": "com.atlassian.jira.plugin.system.customfieldtypes:select" } } } ], "advancedFields": null, "sendNotifications": true }, "children": [], "conditions": [], "connectionId": null } ], "canOtherRuleTrigger": false, "notifyOnError": "FIRSTERROR", "projects": [], "labels": [], "tags": [ { "id": 45243890, "tagType": "IS_RULE_UPDATED", "tagValue": "true" } ], "ruleScope": { "resources": [ "ari:cloud:jira:7bbd0f61-9cf7-46a8-a02c-5d635b174db8:project/10015" ] }, "ruleHome": { "ruleLifeCycleHome": { "locationARI": "ari:cloud:jira:7bbd0f61-9cf7-46a8-a02c-5d635b174db8:project/10015" }, "ruleBillingHome": { "locationARI": "ari:cloud:jira-software::site/7bbd0f61-9cf7-46a8-a02c-5d635b174db8" } }, "writeAccessType": "UNRESTRICTED", "collaborators": [], "billingType": "NORMAL" } ] }

注:フィールド名/プロジェクト名は JSON ファイルでは異なる場合があります。インポート時にルールを変更して、テスト プロジェクトでの動作を確認してください。

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。