define more properties of new confluence object
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
12
main.go
12
main.go
@@ -366,13 +366,21 @@ func main() {
|
|||||||
fmt.Printf("New Content: %v\n", newContent)
|
fmt.Printf("New Content: %v\n", newContent)
|
||||||
|
|
||||||
data := &goconfluence.Content{
|
data := &goconfluence.Content{
|
||||||
ID: *cPageId,
|
ID: c.ID,
|
||||||
|
Type: c.Type,
|
||||||
|
Title: c.Title,
|
||||||
Body: goconfluence.Body{
|
Body: goconfluence.Body{
|
||||||
Storage: goconfluence.Storage{
|
Storage: goconfluence.Storage{
|
||||||
Value: newContent,
|
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
|
//c.Body.Storage.Value = newContent
|
||||||
fmt.Printf("confluence object : '%v'\n", data)
|
fmt.Printf("confluence object : '%v'\n", data)
|
||||||
|
Reference in New Issue
Block a user