lesstif / php-jira-rest-client

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

setDescription giving Operation value must be an Atlassian Document #411

Closed wimg-bstuckey closed 2 years ago

wimg-bstuckey commented 2 years ago

here is my code

        $description = "TEST";

        $issueField->setProjectKey( $projectKey )
                    ->setSummary( $title )
                    ->setIssueType( "Task" )
                    ->setDescription( $description );

        $issueService = new IssueService( );
        $issue = $issueService->create( $issueField );

IF I comment out ->setDescription( $description ); it saves no problem... like literally its 4 regular letters LOL why is it failing? Granted the real thing was longer and I am using \n\t and there are * so i thought maybe that was breaking it... so i busted body down to just TEST and its still breaking...

wimg-bstuckey commented 2 years ago

Ok sorry about that just ran into another thread the pointed out IssueFieldV3 ... this is good to go closing it out https://github.com/lesstif/php-jira-rest-client#create-issue-using-rest-api-v3