Hello,
I've finding myself going in loops trying to use Google App Script with the JIRA Rest API.
I want to search for an JIRA asset, to confirm that is if found, if it is update it with a new value. Problem is I just can't seem to search for it successfully. Repeatedly getting a 404 response.
I even tried my luck with Google Gemini, and that hasn't help me either.
If you can give me a nudge in the right direction I'd be really grateful, including to the actual JIRA cloud api documentation
https://mycomp.atlassian.net/rest/servicedeskapi/assets/workspace/<workspaceid>/v1/aql/objects?aql=objectTypeId%3D136%20AND%20Name%3D'ABC'"
const JIRA_AUTH_HEADER = `Basic ${Utilities.base64Encode(JIRA_USERNAME + ':' + JIRA_API_TOKEN)}`;
const options = {
method: 'GET',
headers: {
Authorization: JIRA_AUTH_HEADER
},
muteHttpExceptions: true
};