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.

- "Space" class found in ConfluencePS.Types.cs, which does not say anything about label or category.

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.
Description
API says that get space will return labels. The
Get-Spacealso includes mentions of labels in$iwParameters['GetParameters']propertyexpand, where we can findmetadata.labels.But no labels are returned when getting all spaces nor a specific space.
Get-Space, which actually specifieslabelsas an attribute to expand, and with no input parameter for getting spaces with a given label/ category.Steps To Reproduce
Get-ConfluenceSpace | Format-List -ForceExpected behavior
Labels or categories should be included in the response.
Screenshots
Your Environment
Possible Solution
Get-ConfluenceSpacefunction to get spaces by labels.