airflow.providers.jira.operators.jira

Module Contents

Classes

JiraOperator

JiraOperator to interact and perform action on Jira issue tracking system.

class airflow.providers.jira.operators.jira.JiraOperator(*, jira_method, jira_conn_id='jira_default', jira_method_args=None, result_processor=None, get_jira_resource_method=None, **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 (Optional[dict]) -- required method parameters for the jira_method. (templated)

  • result_processor (Optional[Callable]) -- function to further process the response from Jira

  • get_jira_resource_method (Optional[Callable]) -- function or operator to get jira resource on which the provided jira_method will be executed

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

This is the main method to derive when creating an operator. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?