From 6f6266e9598682180b816e971ba737d8490dd02a Mon Sep 17 00:00:00 2001 From: Claudio Spizzi Date: Mon, 26 Jul 2021 15:12:14 +0200 Subject: [PATCH 1/2] Fixed `-Label` parsing for the Get-ConfluencePage cmdlet (#193 [@claudiospizzi]) --- CHANGELOG.md | 4 ++++ ConfluencePS/Public/Get-Page.ps1 | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0903d4c..cfe4bb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). . +### Fixed + +- Fixed `-Label` parsing for the Get-ConfluencePage cmdlet (#193 [@claudiospizzi]) + ## [2.5] 2019-03-27 ### Added diff --git a/ConfluencePS/Public/Get-Page.ps1 b/ConfluencePS/Public/Get-Page.ps1 index 6d17034..f0a6d6e 100644 --- a/ConfluencePS/Public/Get-Page.ps1 +++ b/ConfluencePS/Public/Get-Page.ps1 @@ -136,7 +136,8 @@ function Get-Page { "byLabel" { $iwParameters["Uri"] = $resourceApi -f "/search" - $CQLparameters = @("type=page", "label=$Label") + $CQLparameters = @("type=page") + $Label | ForEach-Object { $CQLparameters += "label=$_" } if ($SpaceKey) { $CQLparameters += "space=$SpaceKey" } $cqlQuery = ConvertTo-URLEncoded ($CQLparameters -join (" AND ")) From 33ce716b9ef055ba0a866680ac23570d67d53ba6 Mon Sep 17 00:00:00 2001 From: Claudio Spizzi Date: Wed, 25 Jan 2023 00:45:21 +0100 Subject: [PATCH 2/2] Add minor edit flag --- ConfluencePS/Public/Set-Page.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/ConfluencePS/Public/Set-Page.ps1 b/ConfluencePS/Public/Set-Page.ps1 index 69d58a7..a2b4a21 100644 --- a/ConfluencePS/Public/Set-Page.ps1 +++ b/ConfluencePS/Public/Set-Page.ps1 @@ -83,6 +83,7 @@ function Set-Page { } version = [PSObject]@{ number = 0 + minorEdit = $true } ancestors = @() }