class_docstr: JiraOutput handles all alert dispatching for Jira
class_docstr_tok: ["JiraOutput","handles","all","alert","dispatching","for","Jira"]
docstr: Find an existing Jira issue based on the issue summary
  
  Args:
      issue_summary (str): The Jira issue summary
      project_key (str): The Jira project to search
  
  Returns:
      int: ID of the found issue or False if existing issue does not exist
docstr_tok: ["Find","an","existing","Jira","issue","based","on","the","issue","summary","Args",":","issue_summary","(","str",")",":","The","Jira","issue","summary","project_key","(","str",")",":","The","Jira","project","to","search","Returns",":","int",":","ID","of","the","found","issue","or","False","if","existing","issue","does","not","exist"]
code: def _get_existing_issue(self, issue_summary, project_key):
      """Find an existing Jira issue based on the issue summary
  
      Args:
          issue_summary (str): The Jira issue summary
          project_key (str): The Jira project to search
  
      Returns:
          int: ID of the found issue or False if existing issue does not exist
      """
      jql = 'summary ~ "{}" and project="{}"'.format(
          issue_summary, project_key
      )
      resp = self._search_jira(
          jql, fields=["id", "summary"], max_results=1
      )
      jira_id = False
  
      try:
          jira_id = int(resp[0]["id"])
      except (IndexError, KeyError):
          LOGGER.debug("Existing Jira issue not found")
  
      return jira_id
  
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 9 for calling the JiraOutput obj's underlying member method code with example usage: obj._get_existing_issue(issue_summary, project_key) and returns: jira_id