自動化 | エピックに期限の異なる複数のストーリーが含まれている場合は、直近の期限の値をエピックの期限フィールドにコピーする必要がある

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

要約

エピックに期限の異なる複数のストーリーが含まれている場合は、直近の期限の値をエピックの期限フィールドにコピーする必要があります。

ソリューション

次のルールの詳細をご確認ください。

  • トリガー: 要件に基づいて任意のトリガーを選択できます。この例では、[手動によるトリガー] を選択します。

  • 条件: 課題フィールドの条件では、エピック課題タイプのみをチェックします。

"IF" フィールド条件
  • 条件 (オプション) - 関連する課題の条件では、トリガー エピックのすべての子課題の期限フィールドをチェックします。この条件を含めて、すべてのサブタスクのうち期限が入力されたものだけがルールの実行時に考慮されるようにできます。子課題に期限が設定されていない場合、ルールの実行はここで停止します。

関連課題の条件
  • アクション: [課題を検索] を使用して、トリガー エピック内のすべての子課題の JQL 検索を実行します。JQL 検索結果を期限順に並べて、リストから直近の期限を選択できるようにしてください。

課題のルックアップ アクション
  • アクション: [課題を編集] を使用して、トリガー エピックの [期限] フィールドに直近の子課題の期限フィールドの値が入力されるようにします。使用するスマート値は次のとおりです。

{{lookupIssues.get(0).duedate}}

[課題を編集] コンポーネント

テスト用にこのルール例をインポートする場合は、次の JSON ファイルを使用してください。

{ "cloud": true, "rules": [ { "id": 14624537, "clientKey": "fcb18f79-08d6-35bd-9c47-b1e204f45645", "name": "test due date", "state": "ENABLED", "description": "", "authorAccountId": "6362284b01c2ff842c19db70", "actor": { "type": "ACCOUNT_ID", "value": "557058:f58131cb-b67d-43c7-b30d-6b58d40bd077" }, "created": 1693820196863, "updated": 1693825300351, "trigger": { "id": "315828395", "component": "TRIGGER", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.manual.trigger.issue", "value": { "inputFromUsers": false, "inputPrompts": [], "groups": [], "jQLFilter": null }, "children": [], "conditions": [], "connectionId": null }, "components": [ { "id": "315828396", "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": "315828397", "component": "CONDITION", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.issues.related.condition", "value": { "relatedType": "stories", "linkTypes": [], "operator": "allmatch", "relatedJql": "", "compareJql": "duedate != EMPTY", "compareValue": 0, "similarityLimit": 40, "jql": "" }, "children": [], "conditions": [], "connectionId": null }, { "id": "315828398", "component": "ACTION", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.lookup.issues", "value": { "id": "_customsmartvalue_id_1693816308347", "name": { "type": "FREE", "value": "lookupIssues" }, "type": "JQL", "query": { "type": "SMART", "value": "parent={{issue.key}} ORDER BY duedate DESC" }, "lazy": false }, "children": [], "conditions": [], "connectionId": null }, { "id": "315828399", "component": "ACTION", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.create.variable", "value": { "id": "_customsmartvalue_id_1693816417617", "name": { "type": "FREE", "value": "test" }, "type": "SMART", "query": { "type": "SMART", "value": "{{lookupIssues.get(0).duedate}}" }, "lazy": false }, "children": [], "conditions": [], "connectionId": null }, { "id": "315828400", "component": "ACTION", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "codebarrel.action.log", "value": "{{lookupIssues.get(0).duedate}}", "children": [], "conditions": [], "connectionId": null }, { "id": "315828401", "component": "ACTION", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "codebarrel.action.log", "value": "{{lookupIssues.get(0).key}}", "children": [], "conditions": [], "connectionId": null }, { "id": "315828402", "component": "ACTION", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.issue.refresh.issue", "value": { "delayMs": null }, "children": [], "conditions": [], "connectionId": null }, { "id": "315828403", "component": "ACTION", "parentId": null, "conditionParentId": null, "schemaVersion": 10, "type": "jira.issue.edit", "value": { "operations": [ { "field": { "type": "ID", "value": "duedate" }, "fieldType": "duedate", "type": "SET", "value": "{{test}}" } ], "advancedFields": null, "sendNotifications": true }, "children": [], "conditions": [], "connectionId": null } ], "canOtherRuleTrigger": false, "notifyOnError": "FIRSTERROR", "projects": [], "labels": [], "tags": [ { "id": 42220928, "tagType": "IS_RULE_UPDATED", "tagValue": "true" } ], "ruleScope": { "resources": [ "ari:cloud:jira::site/7bbd0f61-9cf7-46a8-a02c-5d635b174db8" ] }, "ruleHome": { "ruleLifeCycleHome": { "locationARI": "ari:cloud:jira-servicedesk::site/7bbd0f61-9cf7-46a8-a02c-5d635b174db8" }, "ruleBillingHome": { "locationARI": "ari:cloud:jira-servicedesk::site/7bbd0f61-9cf7-46a8-a02c-5d635b174db8" } }, "writeAccessType": "UNRESTRICTED", "collaborators": [], "billingType": "NORMAL" } ] }

更新日時: September 25, 2025

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

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