Skip to content

Problems creating user in jira api #99

Description

@DrDth

Problem

Versions

Laravel V11.44.7
PHP 8.3.15
lesstif/jira-cloud-restapi 1.8.0

Description

There is an error when I try to create a new user via the user service:

  $us = $this->getUserService($jiraConnection);

  $jiraUser = $us->create([
      'emailAddress' => $user->email,
      'products' => [],
  ]);

  return $jiraUser;

The error is:

CURL HTTP Request Failed: Status Code : 400, URL:https://PRODUCT.atlassian.net/rest/api/3/user
Error Message : {"errorMessages":["User could not be created: Failed to add user HttpErrorCode 404 - User not found"],"errors":{}}

Although the user is sucessfully beeing created I am not able to complete my process here because of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions