How to use Epic Link field under the "Field Value Changed" Trigger in Automation for JIRA Cloud
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Currently, we don't support the use of the "Epic Link" field in the "Field Value Changed" trigger in Automation for Jira to detect updates done on an Epic Link. For Example: If Epic Link changed, then copy the Assignee from the newly mapped Epic to its Child Story/Standard Issues.
Solution
Attached is a Sample Automation rule JSON export file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"cloud": true,
"rules": [
{
"id": 10018412,
"clientKey": "1c31e6c8-1670-3d31-a45b-8adaff6b574e",
"name": "Copy Values from Epic to its child issue",
"state": "DISABLED",
"description": "When an Epic Link is updated on the child issue copy the new epics data to its child issue.",
"authorAccountId": "5fbe39a578f01800762d3e4b",
"actor": {
"type": "ACCOUNT_ID",
"value": "557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"
},
"created": 1674827414457,
"updated": 1687943760263,
"trigger": {
"id": "281230572",
"component": "TRIGGER",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 1,
"type": "jira.issue.event.trigger:updated",
"value": {
"eventKey": "jira:issue_updated",
"issueEvent": "issue_updated"
},
"children": [],
"conditions": [],
"connectionId": null
},
"components": [
{
"id": "281230573",
"component": "CONDITION",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 3,
"type": "jira.issue.condition",
"value": {
"selectedField": {
"type": "ID",
"value": "issuetype"
},
"selectedFieldType": "issuetype",
"comparison": "ONE_OF",
"compareValue": {
"type": "ID",
"modifier": null,
"value": "[\"10001\",\"10003\",\"10004\"]",
"multiValue": true,
"source": null
}
},
"children": [],
"conditions": [],
"connectionId": null
},
{
"id": "281230574",
"component": "CONDITION",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 1,
"type": "jira.comparator.condition",
"value": {
"first": "{{#changelog.epic link}}{{toString}}{{/}}",
"second": "",
"operator": "NOT_EQUALS"
},
"children": [],
"conditions": [],
"connectionId": null
},
{
"id": "281230575",
"component": "ACTION",
"parentId": null,
"conditionParentId": null,
"schemaVersion": 10,
"type": "jira.issue.edit",
"value": {
"operations": [
{
"field": {
"type": "ID",
"value": "assignee"
},
"fieldType": "assignee",
"type": "SET",
"value": {
"type": "COPY",
"value": "parent"
}
}
],
"advancedFields": null,
"sendNotifications": true
},
"children": [],
"conditions": [],
"connectionId": null
}
],
"canOtherRuleTrigger": false,
"notifyOnError": "FIRSTERROR",
"projects": [
{
"projectId": "10002",
"projectTypeKey": "software"
}
],
"labels": [
255337
],
"tags": [
{
"id": 35312412,
"tagType": "IS_RULE_UPDATED",
"tagValue": "true"
}
],
"ruleScope": {
"resources": [
"ari:cloud:jira:604c6d6c-4d78-4c1c-b530-6af8ea585730:project/10002"
]
},
"ruleHome": {
"ruleLifeCycleHome": {
"locationARI": "ari:cloud:jira:604c6d6c-4d78-4c1c-b530-6af8ea585730:project/10002"
},
"ruleBillingHome": {
"locationARI": "ari:cloud:jira-software::site/604c6d6c-4d78-4c1c-b530-6af8ea585730"
}
},
"writeAccessType": "UNRESTRICTED",
"collaborators": [],
"billingType": "NORMAL"
}
]
}
NOTE
Copy the above JSON code in a file and save it as .json. Import it in JIRA to import the above rule.
Outline for the automation rule:
Trigger: issue updated
Advanced compare condition:
First value: {{#changelog.epic link}}{{toString}}{{/}}
Condition: does not equal
Second value: empty (leave it blank)
Edit issue: Edit (Assignee/ any other field) to make your changes from the parent Epic(Copy from Parent)
Was this helpful?