Hello, I spent quite some time making test requests for my Jira API integration and it worked excellent, and a few days ago it stopped working, it doesn't work with any request, it tells me that there is an error in the user permissions, I have the paid Jira account is FULL, and I tried generating new API tokens and nothing... If I access the URL through a browser it works fine, but it returns these different errors:
PETITION for POSTMAN:
https://myfirstproyect.atlassian.net/rest/api/2/issue/ID-216
with AUTH BASIC: Username: galanpozo.rs@gmail.com and the generated TOKEN.
RESULT:
and it returns: {"errorMessages":["The issue does not exist or you do not have permission to see it."],"errors":{}}
Afterwards I have several tests in PHP that worked for me before: I give an example:
public function searchIssue($issueData) {
$specificfield = 'Ticketid';
$jql = "project=ID AND 'Ticketid'='1214'";
$searchUrl = "https://myfirstproyect.atlassian.net/rest/api/2/search?jql=" . urlencode($jql);
$headers = array(
"Authorization: Basic". base64_encode("$this->username:$this->apiKey"),
);
$ch = curl_init($searchUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$searchResponse = curl_exec($ch);
if ($searchResponse === false) {
echo 'cURL error: ' . curl_error($ch);
} else {
$httpStatus = curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo "HTTP error: " . $httpStatus;
}
curl_close($ch);
}
AND IT RETURNED HTTP Error: 400NULL
I need to resolve this as I am getting late with the delivery of the API integration and it was working fine before. I leave my username so you can check what may be happening galanpozo.rs@gmail.com
Thank you so much