The docs on /search call here:
define a schema as:
{
"id": "https://docs.atlassian.com/jira/REST/schema/search-request#",
"title": "Search Request",
"type": "object",
"properties": {
"jql": {
"type": "string" },
"startAt": {
"type": "integer"
},
"maxResults": {
"type": "integer"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"validateQuery": { "type": "string" },
"properties": {
"type": "array",
"items": {
"type": "string"
}
},
"fieldsByKeys": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"fieldsByKeys"
]
}
On a GET request I would the the issuetype = Epic with something like:
/rest/api/2/search?jql=project%3D%22Project%20Name%22%20AND%20issuetype%3D%22Epic%22
How would I get the same result for the POST request?
The documentation provides an example JSON body for the POST request:
{ "jql": "project = HSP", "startAt": 0, "maxResults": 15, "fields": [ "summary", "status", "assignee" ], "fieldsByKeys": false }
The value for JQL should be the actual JQL query (escaped and all).
In Laravel,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.