class_docstr: JiraOutput handles all alert dispatching for Jira
class_docstr_tok: ["JiraOutput","handles","all","alert","dispatching","for","Jira"]
docstr: Search Jira for issues using a JQL query
  
  Args:
      jql (str): The JQL query
      fields (list): List of fields to return for each issue
      max_results (int): Maximum number of results to return
      validate_query (bool): Whether to validate the JQL query or not
  
  Returns:
      list: list of issues matching JQL query
docstr_tok: ["Search","Jira","for","issues","using","a","JQL","query","Args",":","jql","(","str",")",":","The","JQL","query","fields","(","list",")",":","List","of","fields","to","return","for","each","issue","max_results","(","int",")",":","Maximum","number","of","results","to","return","validate_query","(","bool",")",":","Whether","to","validate","the","JQL","query","or","not","Returns",":","list",":","list","of","issues","matching","JQL","query"]
code: def _search_jira(
      self, jql, fields=None, max_results=100, validate_query=True
  ):
      """Search Jira for issues using a JQL query
  
      Args:
          jql (str): The JQL query
          fields (list): List of fields to return for each issue
          max_results (int): Maximum number of results to return
          validate_query (bool): Whether to validate the JQL query or not
  
      Returns:
          list: list of issues matching JQL query
      """
      search_url = os.path.join(self._base_url, self.SEARCH_ENDPOINT)
      params = {
          "jql": jql,
          "maxResults": max_results,
          "validateQuery": validate_query,
          "fields": fields,
      }
      try:
          resp = self._get_request_retry(
              search_url,
              params=params,
              headers=self._get_headers(),
              verify=False,
          )
      except OutputRequestFailure:
          return []
  
      response = resp.json()
      if not response:
          return []
  
      return response.get("issues", [])
  
file_path: streamalert/streamalert/alert_processor/outputs/jira_v2.py
imports: from collections import OrderedDict
  import os
  import json
  import base64
  from streamalert.alert_processor.helpers import compose_alert
  from streamalert.alert_processor.outputs.output_base import OutputDispatcher, OutputProperty, OutputRequestFailure, StreamAlertOutput
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 6 for calling the JiraOutput obj's underlying member method code with example usage: obj._search_jira(jql, fields, max_results, validate_query) and returns: response, list, list