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"}
hello @Funny Vines
Are you able to see the issue when using jira Interface ?
The API will still enforce Jira permissions.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.