Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
<?php
 
  $user = array("name" => "userId",
                "password" => "userPwd",
                "emailAddress" => "user@example.com",
                "displayName" => "< USER DISPLAY NAME >",
                "notification" => "true");

  $json = json_encode($user);
  print("$json\n");


  $http_status = 0;

  $url = "https://jira-host-name/rest/api/2/user/";
  $ret = Curl($url, $json, $http_status) ;
  var_dump($ret); 
?>

 

 

Ref

...