Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira get issue reset api getting failed throwing error of Forbidden 403 cloudflare

Funny Vines
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2022

I have facing some Cloudflare 403 Unauthroized error, Getting Forbidden, You don't have permission to view this. Please contact your system administrator.

let Jira_URL = "https://jira.mydomain.com/";
let Jira_Email_Address = "mail of jira account";
let Jira_API_Token = "my personal access token";

let url = Jira_URL + "rest/api/3/issue/TICKETID";
let credentials = Utilities.base64Encode(Jira_Email_Address + ":" + Jira_API_Token);
let header = { 
    "Authorization": "Basic " + credentials,
    "Accept": "application/json"
} 
let options = {
    "method": "GET",
    "headers": header,
    "muteHttpExceptions": true
} 
console.log(options)
let res = UrlFetchApp.fetch(url, options);
console.log(res);

Below response im getting an error for site:

{"message":"Forbidden. You don't have permission to view this. Please contact your system administrator.","status_code":403,"aud":"dsfer23r3wersdfsffsf232423rsf3432","ray_id":"dsfwer34234sfad","ip_address":"12.345.67.8","is_warp":false,"is_gateway":false,"mtls_status":"NONE"}

1 answer

0 votes
robert Mugabuhamye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2022

hello @Funny Vines 

Are you  able to see the issue when using jira Interface ? 

The API will still enforce Jira permissions. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events