* @return
*/
private Query buildSearch(final CustomField securityLevel, final String clientName, Collection<Long> projectCollection, Collection<String> issueTypeCollection) {
// create search for incidents
JqlQueryBuilder newBuilder = JqlQueryBuilder.newBuilder();
Query query = newBuilder.where()
.project().inNumbers(projectCollection)
.and().status().in("" + IssueFieldConstants.OPEN_STATUS_ID,
"" + IssueFieldConstants.INPROGRESS_STATUS_ID)
.and().issueType().inStrings(issueTypeCollection)
.and().customField(securityLevel.getIdAsLong()).like(clientName).buildQuery();