lesstif / php-jira-rest-client

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

setting a remote issue return curl 500 #339

Closed timomayer closed 4 years ago

timomayer commented 4 years ago

after i updated to 2.2 (from 2.1) the function createOrUpdateRemoteIssueLink returns a curl exception with http error 500 from the jira server, it worked perfectly in 2.1 version of the library.

lesstif commented 4 years ago

hi @timomayer

could you give me more information? for example your jira type(server or cloud) and jira server version, server error log stack, etc.

timomayer commented 4 years ago

Jira Server 7.13.8 log: CURL HTTP Request Failed: Status Code : 500, URL:https://domainOfJiraInstance.tld/rest/api/2/issue/ISSUEKEY-100/remotelink Error Message : {"errorMessages":["Internal server error"],"errors":{}

What i do in my code (and as said it worked with 2.1):

$ril = new RemoteIssueLink();
$ril->setUrl($this->configJira['jiraHost'] . '/browse/' . $issueKeyRemote)
->setTitle('VI Ticket ' . $issueKeyRemote)
->setRelationship('is cloned by');
$this->jiraInstance->createOrUpdateRemoteIssueLink($issueKey, $ril);
lesstif commented 4 years ago

@timomayer

it's my mistake, i'm sorry. it was fixed v2.2.1.

thanks.!

timomayer commented 4 years ago

fixed, thanks a lot!