From 7379193d18e1530981ff9a6dfb1bf089c1831307 Mon Sep 17 00:00:00 2001 From: maksimkovalev Date: Thu, 12 Sep 2024 03:24:58 +0400 Subject: [PATCH] [Confluence] Add option to create draft page (#1452) --- atlassian/confluence.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atlassian/confluence.py b/atlassian/confluence.py index 34941596e..669d8647e 100644 --- a/atlassian/confluence.py +++ b/atlassian/confluence.py @@ -793,6 +793,7 @@ def create_page( representation="storage", editor=None, full_width=False, + status="current", ): """ Create page from scratch @@ -804,6 +805,7 @@ def create_page( :param representation: OPTIONAL: either Confluence 'storage' or 'wiki' markup format :param editor: OPTIONAL: v2 to be created in the new editor :param full_width: DEFAULT: False + :param status: either 'current' or 'draft' :return: """ log.info('Creating %s "%s" -> "%s"', type, space, title) @@ -811,6 +813,7 @@ def create_page( data = { "type": type, "title": title, + "status": status, "space": {"key": space}, "body": self._create_body(body, representation), "metadata": {"properties": {}},