I’m trying to read assets from an AQL query via forge - and I am only ever getting a 400 error. - code is below:
const bodyData = `{"qlQuery": "ObjectType = Event"}`;
const res = await requestJira(
`/jsm/assets/workspace/${workspaceId}/v1/object/aql?startAt=0&maxResults=100&includeAttributes=false`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: bodyData,
});
I believe I’ve been round the docs and can’t for the life of me work out my error.
If I raise the request from outside forge - I get a poco error:
“‘poco: rejected authenticated request with decisionId: xxxxxxxxxx \nUTC Time: 2026-01-14 14:25:34.282044637 +0000 UTC \nFollow the troubleshooting guide at go/poco-troubleshooting’”
Any ideas where I’m going wrong?