Just learning to use the Jira REST API and I have most things figured out, but even though there are a ton of resources about the JQL functions, operators, and more, there's no examples that I have found on how to write said query inside of the JSON you submit to run the query.
I'm using CFML, but even if you're not familiar with it, most programmers will recognize what I'm trying to do. and, no, I am not sure I have the right URL or "expand" or "issues" stuff right. This is my first attempt at this area.
<cfset bodyValue = '{
"jql": {created > 2023/07/31 AND labels="BugTracker" AND summary ~ "Randy Is Testing"},
"expand": "names,schema",
"startAt": 0,
"maxResults": 50,
"total": 1,
"issues": [
{
"expand": "",
"key": "#tProjectKey#"
}]
}' />
<cfhttpparam type="header" name="Authorization" value="Basic #t64encode#">
<cfhttpparam type="header" name="Content-Type" value="application/json">
<cfhttpparam type="body" value="#bodyValue#">
</cfhttp>