I'm trying to use the "Send web request" option in JIRA's Project Automation to generate a Confluence Page via REST API
I'm able to use the following code but I don't know how to force Confluence to use an existing template or a global template like "Design Review" when creating the new page.
{
"title": "ABCD",
"type": "page",
"space": { "key": "ABC" },
"status": "current",
"body": {"storage": {"value": "Sample Text", "representation": "storage"}}
}
You can do this with an undocumented rest api.
First create a new page using the content api as a type of draft:
POST https://company.atlassian.net/wiki/rest/api/content
```
```
Use the id retreived from this page to update the draft from a template:
PUT https://company.atlassian.net/wiki/rest/api/content/content_id/instance
```
{
}
```
PUT https://company.atlassian.net/wiki/rest/api/content/content_id/instance
I tried that, but that endpoint does not exist anymore.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why? This would have been useful...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.