You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New-JiraIssue declares a parameter named -Labels <string[]> for setting labels on an issue. On Set-JiraIssue, however, the corresponding parameter name is simply -Label <string[]> (singular form).
This is confusing to end-users and hampers discoverability of either parameter (as someone reusing code might try changing New- to Set- or vice-versa)
Steps To Reproduce
N/A
Expected behavior
New-JiraIssue and Set-JiraIssue have identically-named parameters when parameters shared between both cmdlets have the same function.
Screenshots
N/A
Your Environment
Get-Module JiraPS -ListAvailable | Select Name, Version
$PSVersionTable
PS C:> Get-Module JiraPS -ListAvailable | Select Name, Version
Name Version
JiraPS 2.15.0
JiraPS 2.14.7
JiraPS 2.14.7
PS C:> $PSVersionTable
Name Value
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Possible Solution
Easiest fix here is likely to use the singular-noun form (-Label) and make -Labels an [Alias()].
The text was updated successfully, but these errors were encountered:
Description
New-JiraIssue
declares a parameter named-Labels <string[]>
for setting labels on an issue. OnSet-JiraIssue
, however, the corresponding parameter name is simply-Label <string[]>
(singular form).This is confusing to end-users and hampers discoverability of either parameter (as someone reusing code might try changing
New-
toSet-
or vice-versa)Steps To Reproduce
N/A
Expected behavior
New-JiraIssue
andSet-JiraIssue
have identically-named parameters when parameters shared between both cmdlets have the same function.Screenshots
N/A
Your Environment
PS C:> Get-Module JiraPS -ListAvailable | Select Name, Version
Name Version
JiraPS 2.15.0
JiraPS 2.14.7
JiraPS 2.14.7
PS C:> $PSVersionTable
Name Value
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Possible Solution
Easiest fix here is likely to use the singular-noun form (
-Label
) and make-Labels
an[Alias()]
.The text was updated successfully, but these errors were encountered: