diff --git a/src/User.php b/src/User.php index 8037ddc..a1a3b27 100644 --- a/src/User.php +++ b/src/User.php @@ -47,7 +47,7 @@ public static function fromStdClass( \Badoo\Jira\Issue $Issue = null, \Badoo\Jira\REST\Client $Jira = null ) : User { - $Instance = new static($UserInfo->name, $Jira); + $Instance = new static($UserInfo->accountId, $Jira); $Instance->Issue = $Issue; $Instance->OriginalObject = $UserInfo;