0

I am creating issue by using kbsali redmine api, I am receiving subject can not be blank error even I am passing subject

$result=$client->issue->create([
    'project_id'  => 'projder',
    'subject'     => 'this is subject subject this is subject subject this is subject subject this is subject subject this is subject subject',
    'description' => 'this is subject subject this is subject subject this is subject subject this is subje',
    'assigned_to_id' => '45',
    'priority_id' => $_POST['inputPriority'],
    'uploads'     => array(
        array(
          'token'       => $upload->upload->token,
          'filename'    => $file,
          'description' => 'This is my file description',
          'content_type'=> 'image/png'
        ),
        array(
          'token'       => $uploadoptional->upload->token,
          'filename'    => $optionalUpload,
          'description' => 'Client Attachment',
          'content_type'=> $optionalUploadType
        )
    )
]);



)
SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [type] => array
        )

    [error] => Subject cannot be blank
)
EdChum
  • 376,765
  • 198
  • 813
  • 562
user2210959
  • 79
  • 1
  • 2
  • 9

1 Answers1

0

I found the solution, redmine subject field rights were not given to the user by using i was sending API request to create ticket.

user2210959
  • 79
  • 1
  • 2
  • 9