AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
323 stars 131 forks source link

Added -Exact flag to Get-JiraUser #351

Closed mirrorgleam closed 5 years ago

mirrorgleam commented 5 years ago

Description

If JIRA has usernames such as "jsmith", "jsmithy", "jsmith1", "jsmithson" and you are trying to assign the ticket to "jsmith" it will fail because the assignee field needs a single user object to get a single string from but Get-JiraUser is returning an array of user objects.

By adding the Exact flag to the Get-JiraUser function within the Invoke-JiraIssueTransition this issue is resolved as only one user object is returned.

Motivation and Context

If JIRA has usernames such as "jsmith", "jsmithy", "jsmith1", "jsmithson" and you are trying to assign the ticket to "jsmith" it will fail because the assignee field needs a single user object to get a single string from but Get-JiraUser is returning an array of user objects. closes #349

Types of changes

Checklist