lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

Error by set true DueDate method #423

Closed voltan closed 2 years ago

voltan commented 2 years ago

Hello every one

I try run API for create issue, like this:


    $issueField->setProjectKey("GD")
        ->setSummary("something's wrong")
        ->setAssigneeName("XXX")
        ->setPriorityName("Critical")
        ->setIssueType("Bug")
        ->setDescription("Full description for issue")
        //->addVersion(["1.0.1", "1.0.3"])
        ->addComponents(['Component-1', 'Component-2'])
        // set issue security if you need.
        //->setSecurityId(10001 /* security scheme id */)
        ->setDueDate("2022-10-01")
    ;

    $issueService = new IssueService($arrayConfiguration);

But I have an error by DueDate

{"errorMessages":[],"errors":{"duedate":"Field 'duedate' cannot be set. It is not on the appropriate screen, or unknown."}

Can you please help me to set true DueDate? or any other action needed?

Thanks

voltan commented 2 years ago

It solved for me, I remove DueDate from API call, just if you need DueDate, you should create this filed as custom filed in jira ( I think )