Skip to content

Adding labels without replace all labels param fails #132

@askalski85

Description

@askalski85

Error

AttributeError: 'Bunch' object has no attribute 'metadata'

Confluence version

Powered by Atlassian Confluence 9.0.3 (Cluster node: 39904683)

Input md

---
labels:
- label1
---

Command

md2cf --debug \
  --page-id "$PAGE_ID" \
  --title "$PAGE_TITLE" \
  --parent-id "$PARENT_ID" \
  input.md

Adding --replace-all-labels fixes the problem, but makes the parameter obsolete if it does not work without. The mentioned confluence version payload apparently does not include the metadata property even if labels are already defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions