You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/confluence/actions/create-page/create-page.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "confluence-create-page",
5
5
name: "Create Page",
6
6
description: "Creates a new page in the space. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-post)",
Copy file name to clipboardExpand all lines: components/confluence/actions/create-post/create-post.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "confluence-create-post",
5
5
name: "Create Post",
6
6
description: "Creates a new page or blog post on Confluence. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post/#api-blogposts-post)",
Copy file name to clipboardExpand all lines: components/confluence/actions/delete-post/delete-post.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "confluence-delete-post",
5
5
name: "Delete Post",
6
6
description: "Removes a blog post from Confluence by its ID. Use with caution, the action is irreversible. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post/#api-blogposts-id-delete)",
description: "Retrieve a page by its ID. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get)",
7
-
version: "0.0.2",
9
+
version: "0.1.0",
8
10
annotations: {
9
11
destructiveHint: false,
10
12
openWorldHint: true,
@@ -19,6 +21,47 @@ export default {
19
21
"pageId",
20
22
],
21
23
},
24
+
bodyFormat: {
25
+
propDefinition: [
26
+
confluence,
27
+
"bodyFormat",
28
+
],
29
+
options: BODY_FORMAT_FULL_OPTIONS,
30
+
},
31
+
getDraft: {
32
+
type: "boolean",
33
+
label: "Get Draft",
34
+
description: "If true, retrieves the draft version of this page.",
35
+
optional: true,
36
+
default: false,
37
+
},
38
+
status: {
39
+
type: "string[]",
40
+
label: "Status",
41
+
description: "Filter the page being retrieved by its status.",
42
+
optional: true,
43
+
options: [
44
+
"current",
45
+
"archived",
46
+
"trashed",
47
+
"deleted",
48
+
"historical",
49
+
"draft",
50
+
],
51
+
},
52
+
version: {
53
+
type: "integer",
54
+
label: "Version",
55
+
description: "Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.",
56
+
optional: true,
57
+
},
58
+
additionalOptions: {
59
+
type: "object",
60
+
label: "Additional Options",
61
+
description:
62
+
"Additional parameters to send in the request. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get) for available parameters. Values will be parsed as JSON where applicable.",
63
+
optional: true,
64
+
},
22
65
},
23
66
asyncrun({ $ }){
24
67
constcloudId=awaitthis.confluence.getCloudId({
@@ -28,6 +71,13 @@ export default {
28
71
$,
29
72
cloudId,
30
73
pageId: this.pageId,
74
+
params: {
75
+
"body-format": this.bodyFormat,
76
+
"get-draft": this.getDraft,
77
+
"status": this.status,
78
+
"version": this.version,
79
+
...parseObjectEntries(this.additionalOptions),
80
+
},
31
81
});
32
82
$.export("$summary",`Successfully retrieved page with ID: ${this.pageId}`);
Copy file name to clipboardExpand all lines: components/confluence/actions/get-pages-in-space/get-pages-in-space.mjs
+7-14Lines changed: 7 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "confluence-get-pages-in-space",
5
5
name: "Get Pages in Space",
6
6
description: "Retrieve a list of pages in a space. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-spaces-id-pages-get)",
Copy file name to clipboardExpand all lines: components/confluence/actions/get-pages/get-pages.mjs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "confluence-get-pages",
5
5
name: "Get Pages",
6
6
description: "Retrieve a list of pages. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-get)",
Copy file name to clipboardExpand all lines: components/confluence/actions/search-content/search-content.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "confluence-search-content",
5
5
name: "Search Content",
6
6
description: "Searches for content using the Confluence Query Language (CQL). [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-search#api-wiki-rest-api-search-get)",
Copy file name to clipboardExpand all lines: components/confluence/actions/update-post/update-post.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ export default {
5
5
key: "confluence-update-post",
6
6
name: "Update a Post",
7
7
description: "Updates a page or blog post on Confluence by its ID. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post/#api-blogposts-id-put)",
0 commit comments