class_docstr: JiraOutput handles all alert dispatching for Jira
class_docstr_tok: ["JiraOutput","handles","all","alert","dispatching","for","Jira"]
docstr: Create a Jira issue to write alerts to. Alert is written to the "description"
  field of an issue.
  
  Args:
      summary (str): The name of the Jira issue
      project_key (str): The Jira project key which issues will be associated with
      issue_type (str): The type of issue being created
      description (str): The body of text which describes the issue
  
  Returns:
      int: ID of the created issue or False if unsuccessful
docstr_tok: ["Create","a","Jira","issue","to","write","alerts","to",".","Alert","is","written","to","the","``","description","''","field","of","an","issue",".","Args",":","summary","(","str",")",":","The","name","of","the","Jira","issue","project_key","(","str",")",":","The","Jira","project","key","which","issues","will","be","associated","with","issue_type","(","str",")",":","The","type","of","issue","being","created","description","(","str",")",":","The","body","of","text","which","describes","the","issue","Returns",":","int",":","ID","of","the","created","issue","or","False","if","unsuccessful"]
code: def _create_issue(
      self, summary, project_key, issue_type, description
  ):
      """Create a Jira issue to write alerts to. Alert is written to the "description"
      field of an issue.
  
      Args:
          summary (str): The name of the Jira issue
          project_key (str): The Jira project key which issues will be associated with
          issue_type (str): The type of issue being created
          description (str): The body of text which describes the issue
  
      Returns:
          int: ID of the created issue or False if unsuccessful
      """
      issue_url = os.path.join(self._base_url, self.ISSUE_ENDPOINT)
      issue_body = {
          "fields": {
              "project": {"key": project_key},
              "summary": summary,
              "description": description,
              "issuetype": {"name": issue_type},
          }
      }
      try:
          resp = self._post_request_retry(
              issue_url,
              data=issue_body,
              headers=self._get_headers(),
              verify=False,
          )
      except OutputRequestFailure:
          return False
  
      response = resp.json()
      if not response:
          return False
  
      return response.get("id", False)
  
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 10 for calling the JiraOutput obj's underlying member method code with example usage: obj._create_issue(summary, project_key, issue_type, description) and returns: response, False, False