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.
- post_status(status_message)
Send a temporary status messages that gets overwritten with the next status message that is sent.
- Parameters:
status_message¶
- 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:
- warn_kwargs(**kwargs)