airflow.contrib.operators.jira_operator

Module Contents

class airflow.contrib.operators.jira_operator.JiraOperator(jira_conn_id='jira_default', jira_method=None, jira_method_args=None, result_processor=None, get_jira_resource_method=None, *args, **kwargs)[source]

Bases: airflow.models.BaseOperator

JiraOperator to interact and perform action on Jira issue tracking system. This operator is designed to use Jira Python SDK: http://jira.readthedocs.io

Parameters
  • jira_conn_id (str) – reference to a pre-defined Jira Connection

  • jira_method (str) – method name from Jira Python SDK to be called

  • jira_method_args (dict) – required method parameters for the jira_method. (templated)

  • result_processor (function) – function to further process the response from Jira

  • get_jira_resource_method (function) – function or operator to get jira resource on which the provided jira_method will be executed

template_fields = ['jira_method_args'][source]
execute(self, context)[source]