Good Day All, I'm having some issues forming the right JQL syntax for a Jira curl request. Here is what I currently have, and this is working.
curl -D- -u jenkins:password123 -X POST -d "{\"jql\": \"issuetype = 'Broker AutoDeploy' AND status = 'In Progress'\",\"fields\":[\"key\"]}" -H "Content-Type: application/json" http://jira.site.com:8080/rest/api/2/search
This curl will return the correct issue, but will only give me the "key" of those issues. I've tried adding onto the end of my jql, something like this below.
"{\"jql\": \"issuetype = 'Broker AutoDeploy' AND status = 'In Progress'\",\"fields\":[\"key\"],[\"status\"]}"
But I get errors, as I'm not certain of how to form my syntax. Does anyone know the proper syntax to do something like this?
Thank you for any insight!