From 1d1376ee5fcdfa6ad69081fbd11ca2d91b859650 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 26 Oct 2023 15:08:06 +1100 Subject: [PATCH] define more properties of new confluence object --- main.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d88dcbd..f5a3bc0 100644 --- a/main.go +++ b/main.go @@ -366,13 +366,21 @@ func main() { fmt.Printf("New Content: %v\n", newContent) data := &goconfluence.Content{ - ID: *cPageId, + ID: c.ID, + Type: c.Type, + Title: c.Title, Body: goconfluence.Body{ Storage: goconfluence.Storage{ Value: newContent, - Representation: "storage", + Representation: c.Body.Storage.Representation, }, }, + Version: &goconfluence.Version{ + Number: c.Version.Number + 1, + }, + Space: &goconfluence.Space{ + Key: c.Space.Key, + }, } //c.Body.Storage.Value = newContent fmt.Printf("confluence object : '%v'\n", data)