This resource represents rule management operations. Use this to:
Note: These APIs are currently experimental and are available for EAP tenants.
Get rule summaries for all rules.
Forge and OAuth2 apps cannot access this REST resource.
string
number
Return rule summaries for all rules.
Result of a rule summary search. Contains 0 or more results.
1
2
3
curl --request GET \
--url 'https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule/summary' \
--header 'Accept: application/json'
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
{
"links": {
"self": "https://example.com?cursor=bbbbbb",
"next": "https://example.com?cursor=bbbbbb",
"prev": "https://example.com?cursor=bbbbbb"
},
"data": [
{
"authorAccountId": "5b10ac8d82e05b22cc7d4ef5",
"created": 1743568964.174,
"updated": 1743568964.174,
"description": "A rule description",
"idUuid": "0192e5ac-0e25-71de-ba7b-d972e6a2049a",
"labels": [
10000
],
"name": "Rule one",
"ruleScope": {
"resources": [
"ari:cloud:jira:182b9218-d56a-453d-9659-3f29ea2aa7eb:project/10001"
]
},
"state": "ENABLED"
}
]
}
Get rule summaries for rules that match the given criteria via POST.
Supports filtering by trigger, rule state, and rule scope (single ARI).
Forge and OAuth2 apps cannot access this REST resource.
Query parameters to search on. At least one of trigger, state, scope, or limit must be present.
string
string
RuleState
ARI
number
Return the rule summaries that match the query.
Result of a rule summary search. Contains 0 or more results.
1
2
3
4
5
6
7
8
9
10
11
curl --request POST \
--url 'https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule/summary' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"cursor": "ewogICJhZnRlck9iamVjdElkIjogIjExMTIxMTEiLAogICJvcmRlckJ5IjogIklEIiwKICAicGFnZVNpemUiOiA1Cn0=",
"trigger": "jira.version.event.trigger:created",
"state": "ENABLED",
"scope": "ari:cloud:jira:182b9218-d56a-453d-9659-3f29ea2aa7eb:project/10001",
"limit": 50
}'
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
{
"links": {
"self": "https://example.com?cursor=bbbbbb",
"next": "https://example.com?cursor=bbbbbb",
"prev": "https://example.com?cursor=bbbbbb"
},
"data": [
{
"authorAccountId": "5b10ac8d82e05b22cc7d4ef5",
"created": 1743568964.174,
"updated": 1743568964.174,
"description": "A rule description",
"idUuid": "0192e5ac-0e25-71de-ba7b-d972e6a2049a",
"labels": [
10000
],
"name": "Rule one",
"ruleScope": {
"resources": [
"ari:cloud:jira:182b9218-d56a-453d-9659-3f29ea2aa7eb:project/10001"
]
},
"state": "ENABLED"
}
]
}
Create a new rule from the provided Rule Payload. Accepts a rule payload, which has the same structure as the get a rule by UUID response.
Forge and OAuth2 apps cannot access this REST resource.
CreateRulePayload
RequiredRule was successfully created.
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
curl --request POST \
--url 'https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule' \
--header 'Content-Type: application/json' \
--data '{
"rule": {
"actor": {
"actor": "<string>",
"type": "ACCOUNT_ID"
},
"authorAccountId": "<string>",
"canOtherRuleTrigger": true,
"collaborators": [
"<string>"
],
"components": [
{
"children": [],
"component": "TRIGGER",
"conditionParentId": "<string>",
"conditions": [],
"connectionId": "<string>",
"parentId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
}
],
"description": "<string>",
"labels": [
"<string>"
],
"name": "<string>",
"notifyOnError": "FIRSTERROR",
"ruleScopeARIs": [
"ari:cloud:jira:182b9218-d56a-453d-9659-3f29ea2aa7eb:project/10001"
],
"state": "ENABLED",
"trigger": {
"component": "TRIGGER",
"conditions": [
{
"children": [],
"component": "TRIGGER",
"conditionParentId": "<string>",
"conditions": [],
"connectionId": "<string>",
"parentId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
}
],
"connectionId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
},
"writeAccessType": "OWNER_ONLY"
}
}'
Performs a request to retrieve the rule with the provided UUID. This includes the rule payload, trigger, components, and other metadata.
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredReturn Rule Config for the specified rule
1
2
3
curl --request GET \
--url 'https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule/{ruleUuid}' \
--header 'Accept: application/json'
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
{
"actor": {
"actor": "<string>",
"type": "ACCOUNT_ID"
},
"authorAccountId": "<string>",
"canOtherRuleTrigger": true,
"collaborators": [
"<string>"
],
"components": [
{
"id": "151",
"children": [],
"component": "TRIGGER",
"conditionParentId": "<string>",
"conditions": [],
"connectionId": "<string>",
"parentId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
}
],
"created": "<string>",
"description": "<string>",
"labels": [
"<string>"
],
"name": "<string>",
"notifyOnError": "FIRSTERROR",
"ruleScopeARIs": [
"ari:cloud:jira:182b9218-d56a-453d-9659-3f29ea2aa7eb:project/10001"
],
"state": "ENABLED",
"trigger": {
"id": "151",
"component": "TRIGGER",
"conditions": [
{
"id": "151",
"children": [],
"component": "TRIGGER",
"conditionParentId": "<string>",
"conditions": [],
"connectionId": "<string>",
"parentId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
}
],
"connectionId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
},
"updated": "<string>",
"uuid": "<string>",
"writeAccessType": "OWNER_ONLY"
}
Updates an existing rule by accepting a rule payload, which has the same structure as the get a rule by UUID response. ComponentIds are only required for pre-existing components. New components will be created or deleted as needed.
Forge and OAuth2 apps cannot access this REST resource.
RulePayload
RequiredRule was successfully updated
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
curl --request PUT \
--url 'https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule/{ruleUuid}' \
--header 'Content-Type: application/json' \
--data '{
"rule": {
"actor": {
"actor": "<string>",
"type": "ACCOUNT_ID"
},
"authorAccountId": "<string>",
"canOtherRuleTrigger": true,
"collaborators": [
"<string>"
],
"components": [
{
"id": "151",
"children": [],
"component": "TRIGGER",
"conditionParentId": "<string>",
"conditions": [],
"connectionId": "<string>",
"parentId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
}
],
"description": "<string>",
"labels": [
"<string>"
],
"name": "<string>",
"notifyOnError": "FIRSTERROR",
"ruleScopeARIs": [
"ari:cloud:jira:182b9218-d56a-453d-9659-3f29ea2aa7eb:project/10001"
],
"state": "ENABLED",
"trigger": {
"id": "151",
"component": "TRIGGER",
"conditions": [
{
"id": "151",
"children": [],
"component": "TRIGGER",
"conditionParentId": "<string>",
"conditions": [],
"connectionId": "<string>",
"parentId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
}
],
"connectionId": "<string>",
"schemaVersion": 2154,
"type": "<string>",
"value": {}
},
"writeAccessType": "OWNER_ONLY"
}
}'
Enable or disable a rule by rule UUID.
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredRuleState
RequiredRule was successfully updated.
1
2
3
4
5
6
curl --request PUT \
--url 'https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule/{ruleUuid}/state' \
--header 'Content-Type: application/json' \
--data '{
"value": "ENABLED"
}'
Update the scope of a rule by UUID.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredarray<ARI>
RequiredRule was successfully updated.
1
2
3
4
5
6
7
8
curl --request PUT \
--url 'https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule/{ruleUuid}/rule-scope' \
--header 'Content-Type: application/json' \
--data '{
"ruleScopeARIs": [
"ari:cloud:jira:182b9218-d56a-453d-9659-3f29ea2aa7eb:project/10001"
]
}'
Rate this page: