I'm doing some automation rules using web requests to append content to Confluence pages and it's working all right.
But I realised that when I need to keep the page current content = webResponse.body.body.storage.value, the custom data JSON doesn't allow me to break lines, create tables, nor highlight bold or italics, for example.
Is it possible to format the content I'm appending somehow and also keep the page current content? What would be the syntax for that?
I've seen some examples in the community where they use "wiki" in the body representation, by using it I could format the new content, but it broke the page current content = webResponse.body.body.storage.value.
Is there a way to make both "storage" and "wiki" work at the same time in the same web request?
This is what I'm using:
//Using representation "storage" to keep page current content
{
"id": "<Page ID>", //pageID
"status": "current",
"title": "<Page Title>", //Pagetitle
"body": {
"representation": "storage",
"value": "NEW CONTENT VERY LIMITED {{webResponse.body.body.storage.value}}" //Page current content + new content
},
"version": {
"number": "{{#=}}{{webResponse.body.version.number}} + 1{{/}}" //Increment page version
}
}
@Raphael Teodoro You can use wiki markup to format content https://support.atlassian.com/confluence-cloud/docs/insert-confluence-wiki-markup/
markup can only be used after page creation, isn't it the case?
Are you saying that markup can be used when at the moment of writing the JSON via webhook?
Can you please clarify?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.