Skip to content

Get-ConfluenceSpace does not return labels, and does not take label as input parameter #183

Description

@o-l-a-v

Description

API says that get space will return labels. The Get-Space also includes mentions of labels in $iwParameters['GetParameters'] property expand, where we can find metadata.labels.

But no labels are returned when getting all spaces nor a specific space.

  • API Documentation \ Space \ Get
  • Get-Space, which actually specifies labels as an attribute to expand, and with no input parameter for getting spaces with a given label/ category.
    image
  • "Space" class found in ConfluencePS.Types.cs, which does not say anything about label or category.
    image

Steps To Reproduce

Get-ConfluenceSpace | Format-List -Force

Expected behavior

Labels or categories should be included in the response.

Screenshots

Your Environment

  • PowerShell 5.1 on Windows 10 Enterprise 20H1.
  • ConfluencePS version 2.5.

Possible Solution

  • Add label to the space class (probably)
  • Add input parameter to Get-ConfluenceSpace function to get spaces by labels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions