ID of newly created issue with JSON in Redmine

Added by Daniel Migowski over 8 years ago

Hi,

I am using the php-redmine-api and don't know how to get the ID of a newly created issue. I do something like:

$issue = $client->api('issue')->create(array(
    'project_id'  => $project_id,
    'subject'     => $subject,
    'description' => $description,
...

which creates the issue in Redmine, but printing $issue gives me an empty string. I am just a PHP beginner, so could you help out here, please?

Thanks in advance.