badoo / jira-client

Badoo JIRA API Client with code generator
GNU General Public License v3.0
66 stars 19 forks source link

fix: Security Level id must be a string on issue creation #19

Closed konorlevich closed 4 years ago

konorlevich commented 4 years ago

We have error

Could not find valid 'id' or 'name' in security level object.

when we trying to create issue this way

$CreateRequest = new \Badoo\Jira\Issue\CreateRequest($project, $issue_type, $client);
$CreateRequest
    ->setPriority($priority)
    ->setSecurityLevel((int)$security_level)
    ->setSummary($summary)
    ->setDescription($description)
    ->addComponents($component);

But with this little change we have no errors