JIRA integration with 1.9.17 is not successful.

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
aastitva
TestLink user
Posts: 2
Joined: Sun Jul 22, 2018 5:25 pm

JIRA integration with 1.9.17 is not successful.

Post by aastitva »

JIRA integration with 1.9.17 is not successful. Status is showing as KO. Following is my curl command

curl.exe -k -D- -u sarkart:Tuesday@1207! -X GET -H "Content-Type: application/json" https://at.acision.com/jira/rest/api/2/ ... me=sarkart

I am using curl_setopt() for the above command as

curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_URL, 'https://at.acision.com/jira/rest/api/2/ ... me=sarkart');
curl_setopt($ch, CURLOPT_USERPWD, $this->username . ":" . $this->password);
curl_setopt($ch, CURLOPT_URL, 'https://at.acision.com/jira/rest/api/2/ ... me=sarkart');
curl_setopt($ch, CURLOPT_USERPWD, $this->username . ":" . $this->password);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, CURLHEADER_SEPARATE); //displays header in output.
curl_setopt($ch, CURLOPT_HTTPHEADER, array($this->contentType) );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

When i am executing curl command from command prompt, I am getting 200 OK as response but when I am setting curl_setopt() as mentioned above and trying to execute the command using curl_exec() response is 500, Unspecified error

What is missing here? can anyone help me.
Post Reply