AtlassianPS / JiraPS

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

Add-JiraUser - Fails #354

Open jason-winters opened 5 years ago

jason-winters commented 5 years ago

Add-JiraUser when used on Atlassian Cloud causes a powershell error, however the user is actually created in Jira.

All subsequent commands involving the newly created user also produce an error I.E. Get-JiraUser Add-JiraGroupMember etc

Yet the user is added to the groups

V-K9__Running_

JiraPS Version 2.10.3 Powershell version 5.1.18362.113 OS Windows 10

jason-winters commented 5 years ago

After some more testing I was able to determine that this error occurs if a user has previously existed and been deleted. On a brand new never before been on Jira User it works as expected. If I have a user Fred who leaves the company and is removed, then comes back this error is generated.

lipkau commented 5 years ago

This seems to be a problem with Jira itself. I have created a support thread for this: https://community.atlassian.com/t5/Jira-questions/Internal-Server-Error-when-adding-a-user-which-existed-before/qaq-p/1099231

I recommend doing the New-JiraUser in a try {} catch {} block and check with Get-JiraUser to see if it was successful

lipkau commented 5 years ago

Seems to be a known Bug. https://jira.atlassian.com/browse/JRACLOUD-68249

Please vote for it ("Affected customers")

DavidHromyk commented 4 years ago

Voted it up since this is also affecting our team.