JIRA integration with 1.9.17 is not successful.

Moderators: Amaradana, TurboPT, TL Developers

JIRA integration with 1.9.17 is not successful.

Postby aastitva » Mon Jul 30, 2018 3:47 pm

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/user?username=sarkart');
curl_setopt($ch, CURLOPT_USERPWD, $this->username . ":" . $this->password);
curl_setopt($ch, CURLOPT_URL, 'https://at.acision.com/jira/rest/api/2/user?username=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.
aastitva
TestLink user
 
Posts: 2
Joined: Sun Jul 22, 2018 5:25 pm

Return to Jira



Who is online

Users browsing this forum: No registered users and 1 guest