Returns all tasks. The number of results is limited by the limit
parameter and additional results (if available)
will be available through the next
URL present in the Link
response header.
Permissions required: Permission to access the Confluence site ('Can use' global permission). Only tasks that the user has permission to view will be returned.
read:task:confluence
Connect app scope required: READ
PrimaryBodyRepresentation
boolean
string
array<integer>
array<integer>
array<integer>
array<integer>
array<string>
array<string>
array<string>
Returned if the requested tasks are returned.
string
1
2
3
4
5
6
7
8
9
10
11
12
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/tasks`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.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
{
"results": [
{
"id": "<string>",
"localId": "<string>",
"spaceId": "<string>",
"pageId": "<string>",
"blogPostId": "<string>",
"status": "complete",
"body": {
"storage": {},
"atlas_doc_format": {}
},
"createdBy": "<string>",
"assignedTo": "<string>",
"completedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"dueAt": "<string>",
"completedAt": "<string>"
}
],
"_links": {
"next": "<string>",
"base": "<string>"
}
}
Returns a specific task.
Permissions required: Permission to view the containing page or blog post and its corresponding space.
read:task:confluence
Connect app scope required: READ
integer
RequiredPrimaryBodyRepresentation
Returned if the requested task is returned.
1
2
3
4
5
6
7
8
9
10
11
12
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/tasks/{id}`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.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
{
"id": "<string>",
"localId": "<string>",
"spaceId": "<string>",
"pageId": "<string>",
"blogPostId": "<string>",
"status": "complete",
"body": {
"storage": {
"representation": "<string>",
"value": "<string>"
},
"atlas_doc_format": {
"representation": "<string>",
"value": "<string>"
}
},
"createdBy": "<string>",
"assignedTo": "<string>",
"completedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"dueAt": "<string>",
"completedAt": "<string>"
}
Update a task by id. This endpoint currently only supports updating task status.
Permissions required: Permission to edit the containing page or blog post and view its corresponding space.
write:task:confluence
Connect app scope required: WRITE
integer
RequiredPrimaryBodyRepresentation
string
string
string
string
string
string
Requiredstring
string
string
string
Returned if the requested task is 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
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
var bodyData = `{
"id": "<string>",
"localId": "<string>",
"spaceId": "<string>",
"pageId": "<string>",
"blogPostId": "<string>",
"status": "complete",
"createdBy": "<string>",
"assignedTo": "<string>",
"completedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"dueAt": "<string>",
"completedAt": "<string>"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/tasks/{id}`, {
method: 'PUT',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.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
{
"id": "<string>",
"localId": "<string>",
"spaceId": "<string>",
"pageId": "<string>",
"blogPostId": "<string>",
"status": "complete",
"body": {
"storage": {
"representation": "<string>",
"value": "<string>"
},
"atlas_doc_format": {
"representation": "<string>",
"value": "<string>"
}
},
"createdBy": "<string>",
"assignedTo": "<string>",
"completedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"dueAt": "<string>",
"completedAt": "<string>"
}
Rate this page: