自動化ルール | リンクされた課題を課題のカスタム フィールド テキストに保存する

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

要約

このナレッジベース記事は、次のユース ケースに対する提案を共有するのに役立ちます。

ある課題が何らかの関連課題 (たとえば、"Blocks") とリンクされたら、親課題のカスタム フィールドの "Text" タイプに課題キーを保存します。

ソリューション

このユース ケースでは、自動化ルールをさまざまなアプローチで設定できます。ここでは、検討できるアプローチを 1 つ紹介します。

トリガー: 課題のリンク ブランチ ルール/関連課題: 関連課題のタイプ: 現在の課題 課題を検索: JQL: issue in linkedIssues({{key}}, "blocks") 課題を編集: 目的のカスタム フィールドを選択。フィールドに値を渡す: {{LookupIssues}}

参考として、自動化ルールの構成ファイルを以下に示します。

{ "cloud": true, "rules": [ { "id": 15126453, "clientKey": "fcb18f79-08d6-35bd-9c47-b1e204f45645", "name": "Add linked issue in the custom field", "state": "ENABLED", "description": "", "authorAccountId": "6362284b01c2ff842c19db70", "actor": { "type": "ACCOUNT_ID", "value": "557058:f58131cb-b67d-43c7-b30d-6b58d40bd077" }, "created": 1696235484668, "updated": 1696236596349, "trigger": { "id": "329691080", "component": "TRIGGER", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.issue.event.trigger:link", "value": { "linkTypes": [ "Blocks" ] }, "children": [], "conditions": [], "connectionId": null }, "components": [ { "id": "329691082", "component": "BRANCH", "parentId": null, "conditionParentId": null, "schemaVersion": 1, "type": "jira.issue.related", "value": { "relatedType": "current", "jql": "", "linkTypes": [], "onlyUpdatedIssues": false, "similarityLimit": 40, "compareValue": 0 }, "children": [ { "id": "329691084", "component": "ACTION", "parentId": "329691082", "conditionParentId": null, "schemaVersion": 1, "type": "jira.lookup.issues", "value": { "id": "_customsmartvalue_id_1696236456463", "name": { "type": "FREE", "value": "lookupIssues" }, "type": "JQL", "query": { "type": "SMART", "value": "issue in linkedIssues({{key}}, \"blocks\")" }, "lazy": false }, "children": [], "conditions": [], "connectionId": null }, { "id": "329691085", "component": "ACTION", "parentId": "329691082", "conditionParentId": null, "schemaVersion": 1, "type": "codebarrel.action.log", "value": "{{lookupIssues}}", "children": [], "conditions": [], "connectionId": null }, { "id": "329691086", "component": "ACTION", "parentId": "329691082", "conditionParentId": null, "schemaVersion": 10, "type": "jira.issue.edit", "value": { "operations": [ { "field": { "type": "NAME", "value": "Link Key" }, "fieldType": "com.atlassian.jira.plugin.system.customfieldtypes:textarea", "type": "SET", "value": "{{lookupIssues}}" } ], "advancedFields": null, "sendNotifications": true }, "children": [], "conditions": [], "connectionId": null } ], "conditions": [], "connectionId": null } ], "canOtherRuleTrigger": false, "notifyOnError": "FIRSTERROR", "projects": [], "labels": [], "tags": [ { "id": 44621159, "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" } ] }

情報

ハイパーリンク形式の課題が必要な場合は、カスタム フィールドで Wiki スタイル レンダラーがフィールドのアクティブ レンダラーとして設定されていることを確認してください。アクティブ レンダラーを Wiki スタイルとして設定するには、ナレッジベース記事「How to update Active Renderer for the field」を参照してください。

更新日時: September 25, 2025

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

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