bi_etl.notifiers.jira module

class bi_etl.notifiers.jira.Jira(config_section: JiraNotifier, *, name: str | None = None)[source]

Bases: NotifierBase

__init__(config_section: JiraNotifier, *, name: str | None = None)[source]
add_attachment(issue, attachment: NotifierAttachment)[source]

Attach an attachment to an issue and returns a Resource for it.

cleanup_attachments(issue, keep_first_attachment: bool, recent_attachments_to_keep: int)[source]
cleanup_comments(issue, keep_first_comment: bool, recent_comments_to_keep: int)[source]
get_priority_id(priority_name: str) str[source]
post_status(status_message)

Send a temporary status messages that gets overwritten with the next status message that is sent.

Parameters:

status_message

search(subject: str, subject_alternates: Iterable[str] | None = None)[source]
send(subject: str, message: str, sensitive_message: str = None, attachment: NotifierAttachment | None = None, throw_exception: bool = False, labels: List[str] | None = None, priority: str | None = None, custom_fields: Dict[str, Any] | None = None, subject_alternates: Iterable[str] | None = None, **kwargs)[source]

Log a Jira issue

To use special formatting codes please see https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all

Parameters:
  • subject

  • message

  • sensitive_message

  • attachment

  • throw_exception

  • labels – Optional list of labels to apply to the issue. Only used for new issues.

  • priority – Optional priority apply to the issue. Only used for new issues.

  • custom_fields – Optional dictionary of custom Jira fields to apply to the issue. Only used for new issues.

  • subject_alternates – Optional iterable of other subject values to search for existing issues. This is useful if you change the subject value but want to be able to find existing issues with the old name.

Returns:

update_description(issue, new_message_parts: List[str])[source]
warn_kwargs(**kwargs)