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.1",
8
+
type: "action",
9
+
props: {
10
+
confluence,
11
+
pageId: {
12
+
propDefinition: [
13
+
confluence,
14
+
"pageId",
15
+
],
16
+
},
17
+
},
18
+
asyncrun({ $ }){
19
+
constcloudId=awaitthis.confluence.getCloudId({
20
+
$,
21
+
});
22
+
constresponse=awaitthis.confluence.getPageById({
23
+
$,
24
+
cloudId,
25
+
pageId: this.pageId,
26
+
});
27
+
$.export("$summary",`Successfully retrieved page with ID: ${this.pageId}`);
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)",
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)",
Copy file name to clipboardExpand all lines: components/confluence/confluence.app.mjs
+105Lines changed: 105 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,103 @@ export default {
123
123
};
124
124
},
125
125
},
126
+
pageId: {
127
+
type: "string",
128
+
label: "Page ID",
129
+
description: "Select a page or provide its ID",
130
+
asyncoptions({ prevContext }){
131
+
constparams=prevContext?.cursor
132
+
? {
133
+
cursor: prevContext.cursor,
134
+
}
135
+
: {};
136
+
constcloudId=awaitthis.getCloudId();
137
+
const{
138
+
results,_links: links,
139
+
}=awaitthis.listPages({
140
+
cloudId,
141
+
params,
142
+
});
143
+
constoptions=results?.map(({
144
+
id: value,title: label,
145
+
})=>({
146
+
value,
147
+
label,
148
+
}))||[];
149
+
return{
150
+
options,
151
+
context: {
152
+
cursor: this._extractCursorFromLink(links?.next),
153
+
},
154
+
};
155
+
},
156
+
},
157
+
pageSort: {
158
+
type: "string",
159
+
label: "Sort",
160
+
description: "Used to sort the result by a particular field",
161
+
options: [
162
+
"id",
163
+
"-id",
164
+
"created-date",
165
+
"-created-date",
166
+
"modified-date",
167
+
"-modified-date",
168
+
"title",
169
+
"-title",
170
+
],
171
+
optional: true,
172
+
},
173
+
pageStatus: {
174
+
type: "string",
175
+
label: "Status",
176
+
description: "Filter the results to pages based on their status",
177
+
options: [
178
+
"current",
179
+
"archived",
180
+
"deleted",
181
+
"trashed",
182
+
],
183
+
optional: true,
184
+
},
185
+
pageTitle: {
186
+
type: "string",
187
+
label: "Title",
188
+
description: "Filter the results to pages based on their title",
189
+
optional: true,
190
+
},
191
+
bodyFormat: {
192
+
type: "string",
193
+
label: "Body Format",
194
+
description: "The content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.",
195
+
options: [
196
+
"storage",
197
+
"atlas_doc_format",
198
+
],
199
+
optional: true,
200
+
},
201
+
subType: {
202
+
type: "string",
203
+
label: "Subtype",
204
+
description: "Filter the results to pages based on their subtype",
205
+
options: [
206
+
"live",
207
+
"page",
208
+
],
209
+
optional: true,
210
+
},
211
+
cursor: {
212
+
type: "string",
213
+
label: "Cursor",
214
+
description: "Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.",
215
+
optional: true,
216
+
},
217
+
limit: {
218
+
type: "integer",
219
+
label: "Limit",
220
+
description: "Maximum number of pages per result to return",
0 commit comments