This resource represents schedules in Jira Service Management. Use it to:
Lists all schedules that user can view. It optionally takes two parameters - offset and size.
Permissions required: Permission to access Jira Service Management; however, the list contains a schedule if:
read:ops-config:jira-service-management
string
integer
integer
array<string>
Returned if the request is successful.
1
2
3
4
curl --request GET \
--url 'https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/schedules' \
--user 'email@example.com:<api_token>' \
--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
{
"values": [
{
"id": "f8f2a4ec-54b2-4513-865b-8cb3b81c9544",
"name": "Support Schedule",
"description": "On-call schedule for support team",
"timezone": "America/New_York",
"enabled": true,
"teamId": "cd68207b-c55d-4611-ab25-72fd0c439e9f",
"rotations": [
{
"id": "3ce33f53-69be-4b92-8d34-a1df0efe642e",
"name": "Daily rotation",
"startDate": "2023-11-10T05:00:00Z",
"endDate": "2024-04-28T10:00:00Z",
"type": "weekly",
"length": 2,
"participants": [
{
"type": "user",
"id": "14a994fd-78c6-4236-8b83-d107e5d32d6a"
},
{
"type": "team",
"id": "2ad4505d-d7a9-4997-8745-c40a3b641573"
}
],
"timeRestriction": {
"type": "time-of-day",
"restriction": {}
}
}
]
}
],
"links": {
"next": "/v1/schedules?offset=50&size=25"
},
"_expands": [
"rotation"
]
}
Creates a schedule with given properties.
Permissions required: Permission to create a schedule:
read:ops-config:jira-service-management
write:ops-config:jira-service-management
string
Requiredstring
string
string
boolean
array<CreateRotationRequest>
Returned if the schedule is created successfully.
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
curl --request POST \
--url 'https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/schedules' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Support Schedule",
"teamId": "cd68207b-c55d-4611-ab25-72fd0c439e9f",
"description": "On-call schedule for support team",
"timezone": "America/New_York",
"enabled": true,
"rotations": [
{
"name": "Daily rotation",
"startDate": "2023-11-10T05:00:00Z",
"endDate": "2024-04-28T10:00:00Z",
"type": "weekly",
"length": 2,
"participants": [
{
"type": "user",
"id": "14a994fd-78c6-4236-8b83-d107e5d32d6a"
},
{
"type": "team",
"id": "2ad4505d-d7a9-4997-8745-c40a3b641573"
}
],
"timeRestriction": {
"type": "time-of-day",
"restriction": {
"startHour": 10,
"endHour": 20,
"startMin": 30,
"endMin": 0
}
}
}
]
}'
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
{
"id": "f8f2a4ec-54b2-4513-865b-8cb3b81c9544",
"name": "Support Schedule",
"description": "On-call schedule for support team",
"timezone": "America/New_York",
"enabled": true,
"teamId": "cd68207b-c55d-4611-ab25-72fd0c439e9f",
"rotations": [
{
"id": "3ce33f53-69be-4b92-8d34-a1df0efe642e",
"name": "Daily rotation",
"startDate": "2023-11-10T05:00:00Z",
"endDate": "2024-04-28T10:00:00Z",
"type": "weekly",
"length": 2,
"participants": [
{
"type": "user",
"id": "14a994fd-78c6-4236-8b83-d107e5d32d6a"
},
{
"type": "team",
"id": "2ad4505d-d7a9-4997-8745-c40a3b641573"
}
],
"timeRestriction": {
"type": "time-of-day",
"restriction": {
"startHour": 10,
"endHour": 20,
"startMin": 30,
"endMin": 0
}
}
}
]
}
Returns the details of the schedule with given id in the request.
Permissions required: Permission to access to the schedule:
read:ops-config:jira-service-management
string
RequiredReturned if the request is successful.
1
2
3
4
curl --request GET \
--url 'https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/schedules/{id}' \
--user 'email@example.com:<api_token>' \
--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
{
"id": "f8f2a4ec-54b2-4513-865b-8cb3b81c9544",
"name": "Support Schedule",
"description": "On-call schedule for support team",
"timezone": "America/New_York",
"enabled": true,
"teamId": "cd68207b-c55d-4611-ab25-72fd0c439e9f",
"rotations": [
{
"id": "3ce33f53-69be-4b92-8d34-a1df0efe642e",
"name": "Daily rotation",
"startDate": "2023-11-10T05:00:00Z",
"endDate": "2024-04-28T10:00:00Z",
"type": "weekly",
"length": 2,
"participants": [
{
"type": "user",
"id": "14a994fd-78c6-4236-8b83-d107e5d32d6a"
},
{
"type": "team",
"id": "2ad4505d-d7a9-4997-8745-c40a3b641573"
}
],
"timeRestriction": {
"type": "time-of-day",
"restriction": {
"startHour": 10,
"endHour": 20,
"startMin": 30,
"endMin": 0
}
}
}
]
}
Deletes the schedule with given id in the request.
Permissions required: Permission to delete the schedule:
read:ops-config:jira-service-management
delete:ops-config:jira-service-management
string
RequiredReturned if the schedule is deleted successfully.
1
2
3
curl --request DELETE \
--url 'https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/schedules/{id}' \
--user 'email@example.com:<api_token>'
Updates the schedule with given id in the request.
Permissions required: Permission to update the schedule:
read:ops-config:jira-service-management
write:ops-config:jira-service-management
string
Requiredstring
string
string
string
boolean
array<CreateRotationRequest>
Returned if the request is successful.
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
curl --request PATCH \
--url 'https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/schedules/{id}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Support Schedule",
"teamId": "cd68207b-c55d-4611-ab25-72fd0c439e9f",
"description": "On-call schedule for support team",
"timezone": "America/New_York",
"enabled": true,
"rotations": [
{
"name": "Daily rotation",
"startDate": "2023-11-10T05:00:00Z",
"endDate": "2024-04-28T10:00:00Z",
"type": "weekly",
"length": 2,
"participants": [
{
"type": "user",
"id": "14a994fd-78c6-4236-8b83-d107e5d32d6a"
},
{
"type": "team",
"id": "2ad4505d-d7a9-4997-8745-c40a3b641573"
}
],
"timeRestriction": {
"type": "time-of-day",
"restriction": {
"startHour": 10,
"endHour": 20,
"startMin": 30,
"endMin": 0
}
}
}
]
}'
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
{
"id": "f8f2a4ec-54b2-4513-865b-8cb3b81c9544",
"name": "Support Schedule",
"description": "On-call schedule for support team",
"timezone": "America/New_York",
"enabled": true,
"teamId": "cd68207b-c55d-4611-ab25-72fd0c439e9f",
"rotations": [
{
"id": "3ce33f53-69be-4b92-8d34-a1df0efe642e",
"name": "Daily rotation",
"startDate": "2023-11-10T05:00:00Z",
"endDate": "2024-04-28T10:00:00Z",
"type": "weekly",
"length": 2,
"participants": [
{
"type": "user",
"id": "14a994fd-78c6-4236-8b83-d107e5d32d6a"
},
{
"type": "team",
"id": "2ad4505d-d7a9-4997-8745-c40a3b641573"
}
],
"timeRestriction": {
"type": "time-of-day",
"restriction": {
"startHour": 10,
"endHour": 20,
"startMin": 30,
"endMin": 0
}
}
}
]
}
Rate this page: