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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.