Morning ;
I have a problem. My code:

when I put the JQL I think that is bad, cause the result is not good, I don't know that I will do... please help me...

I put the code here:
def result2 = post("/rest/api/2/search/")
.header('Content-Type', 'application/json')
.header('accept', 'application/json')
.queryString("startAt", 0)
.queryString("maxResults", 10) // If we search for too many issues we'll reach the 30s script timeout
.body('{"jql":"issuetype in subTaskIssueTypes() and ${it.name} is EMPTY"}')
//.body('{"jql":"issuetype in subTaskIssueTypes() and '\'Tipologia de imputación'\' is EMPTY"}')
.asJson()
if (result2.status == 200){
int contCustom = result2.body.array.total
}else{
contCustom = 0
}
if (contCustom > 0){
logger.info('XXXXXXXXXXXX')
}