Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed -Label parsing for the Get-ConfluencePage cmdlet #194

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ConfluencePS/Public/Get-Page.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 "))

Expand Down
1 change: 1 addition & 0 deletions ConfluencePS/Public/Set-Page.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function Set-Page {
}
version = [PSObject]@{
number = 0
minorEdit = $true
}
ancestors = @()
}
Expand Down