Closed quadrilo44 closed 4 years ago
This seems to be caused by the fact that the Name
column in the Get-JiraUser
function is empty. It's trying to set the reporter to the current user but fails because the name is not found.
I agree with @LaurentGoderre. The New-JiraIssue
is attempting to get a reporter using Get-JiraUser
and returning null instead.
A possible work around is to provide a reporter directly in the parameters you provide. EG
New-JiraIssue -Project "SomeProject" -IssueType "Bug" -Summary "Test Reporter Issue" -Reporter "Anonymous"
OR
$Parameters = @{
Project = "SomeProject"
IssueType = "Bug"
Summary = "Test Reporter Issue"
Reporter = "Anonymous"
}
New-JiraIssue @Parameters
So I was looking into this a bit more. It looks like the root cause might be JIRA removing username(s) from their endpoints due to GDPR. Account IDs have replaced them it seems
They remove name
for privacy reasons but keep emailAddress
and displayName
? Weird.
I suspect this is also the cause of the other couple of recent issues to do with Reporter and Assignee failing.
Thank you for reporting this. This behavior has the same cause as #404 . I am closing this as a duplicate. please follow that ticket for keeping up-to-date
Description
From today, when creating a new issue, I am getting the following errors:
Steps To Reproduce
Add new issue using the New-JiraIssue command.
Expected behavior
Issue should be created successfully
Your Environment
Possible Solution
Looks like the "Name" attribute used in "Get-JiraUser -UserName $result.Name -Exact" is no longer returned.