-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### IMPROVEMENTS - Added support for paginated response from API server by means of `-Paging` (#291, [@lipkau[]]) - Added full set of functions to manage Filter Permissions (#289, [@lipkau[]]) - Added `-Id` parameter to `Remove-JiraFilter` (#288, [@lipkau[]]) - Changed logic of `Get-JiraUser` to return multiple results for a search (#272, [@lipkau[]]) - Added posts for homepage to the module's repository (#268, [@lipkau[]]) - Improved handling of _Credentials_ (#271, [@lipkau[]]) - Added missing interactions with _Filters_ (#266, [@lipkau[]]) - Added `Remove-JiraIssue` (#265, [@hmmwhatsthisdo[]]) - Improved Build script (to deploy changes to the homepage) (#259, [@lipkau[]]) ### BUG FIXES - Reverted `Add-JiraIssueAttachament` as JiraPS v2.7 broke it (#287, [@lipkau[]]) - Fixed resolving of Remote Link (#286, [@lipkau[]]) - Improved error handling for ErrorDetails and non-JSON/HTML responses (#277, [@hmmwhatsthisdo[]]) - Fully support Powershell v3 (#273, [@lipkau[]]) - Fixed parameter used in documentation but not in code (#263, [@lipkau[]])
- Loading branch information
Showing
119 changed files
with
7,253 additions
and
1,595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
|
||
--- | ||
|
||
## Description | ||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
## Steps To Reproduce | ||
<!-- Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant --> | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
## Expected behavior | ||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
## Screenshots | ||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
## Your Environment | ||
<!-- Include as many relevant details about the environment you experienced the bug in --> | ||
<!-- The following code snip is a recommendation. You can just paste the output here. --> | ||
> ```powershell | ||
> Get-Module JiraPS -ListAvailable | select version | ||
> $PSVersionTable | ||
> ``` | ||
## Possible Solution | ||
<!-- Not obligatory, but suggest a fix/reason for the bug --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function ConvertTo-GetParameter { | ||
<# | ||
.SYNOPSIS | ||
Generate the GET parameter string for an URL from a hashtable | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter( Position = 0, Mandatory = $true, ValueFromPipeline = $true )] | ||
[hashtable]$InputObject | ||
) | ||
|
||
process { | ||
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Making HTTP get parameter string out of a hashtable" | ||
Write-Verbose ($InputObject | Out-String) | ||
[string]$parameters = "?" | ||
foreach ($key in $InputObject.Keys) { | ||
$value = $InputObject[$key] | ||
$parameters += "$key=$($value)&" | ||
} | ||
$parameters -replace ".$" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
function ConvertTo-JiraFilterPermission { | ||
[CmdletBinding()] | ||
param( | ||
[Parameter( ValueFromPipeline )] | ||
[PSObject[]] | ||
$InputObject | ||
) | ||
|
||
process { | ||
foreach ($i in $InputObject) { | ||
Write-Debug "[$($MyInvocation.MyCommand.Name)] Converting `$InputObject to custom object" | ||
|
||
$props = @{ | ||
'ID' = $i.id | ||
'Type' = $i.type | ||
'Group' = $null | ||
'Project' = $null | ||
'Role' = $null | ||
} | ||
if ($i.group) { | ||
$props["Group"] = ConvertTo-JiraGroup $i.group | ||
} | ||
if ($i.project) { | ||
$props["Project"] = ConvertTo-JiraProject $i.project | ||
} | ||
if ($i.role) { | ||
$props["Role"] = ConvertTo-JiraProjectRole $i.role | ||
} | ||
|
||
$result = New-Object -TypeName PSObject -Property $props | ||
$result.PSObject.TypeNames.Insert(0, 'JiraPS.FilterPermission') | ||
$result | Add-Member -MemberType ScriptMethod -Name 'ToString' -Force -Value { | ||
Write-Output "$($this.Type)" | ||
} | ||
|
||
Write-Output $result | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
function ConvertTo-JiraProjectRole { | ||
[CmdletBinding()] | ||
param( | ||
[Parameter( ValueFromPipeline )] | ||
[PSObject[]] | ||
$InputObject | ||
) | ||
|
||
process { | ||
foreach ($i in $InputObject) { | ||
Write-Debug "[$($MyInvocation.MyCommand.Name)] Converting `$InputObject to custom object" | ||
|
||
$props = @{ | ||
'ID' = $i.id | ||
'Name' = $i.name | ||
'Description' = $i.description | ||
'Actors' = $i.actors | ||
'RestUrl' = $i.self | ||
} | ||
|
||
$result = New-Object -TypeName PSObject -Property $props | ||
$result.PSObject.TypeNames.Insert(0, 'JiraPS.ProjectRole') | ||
$result | Add-Member -MemberType ScriptMethod -Name "ToString" -Force -Value { | ||
Write-Output "$($this.Name)" | ||
} | ||
|
||
Write-Output $result | ||
} | ||
} | ||
} |
Oops, something went wrong.