jira_app ¤
admin ¤
client ¤
JiraClient ¤
Source code in src/firefighter/jira_app/client.py
get_jira_user_from_jira_id ¤
Look for a Jira User in DB, if not found, fetch it from Jira API.
Parameters:
-
jira_account_id
(str
) –Jira account id
Raises:
-
JiraUserNotFoundError
–User not found in Jira nor in DB
-
JiraUserDatabaseError
–Unable to create user in DB
-
ValueError
–Empty jira_account_id
Returns:
-
JiraUser
(JiraUser
) –Jira user object
Source code in src/firefighter/jira_app/client.py
get_jira_user_from_user ¤
Fetches a Jira user from the Jira API.
Parameters:
-
user
(User
) –User object
Raises:
-
JiraUserNotFoundError
–User not found in Jira
Returns:
-
JiraAPIUser
(JiraUser
) –Jira API user object
Source code in src/firefighter/jira_app/client.py
get_watchers_from_jira_ticket ¤
Fetch watchers for a specific Jira ticket from Jira API.
Parameters:
Raises:
-
ValueError
–Empty issue id
Returns:
-
list
(User
) –List of Jira users object
Source code in src/firefighter/jira_app/client.py
transition_issue_auto ¤
Attempts to close an issue by applying transitions to it.
Parameters:
-
issue_id
(str | int
) –Jira issue id
-
target_status_name
(str
) –target status name
-
workflow_name
(str
) –workflow name
Source code in src/firefighter/jira_app/client.py
models ¤
utils ¤
pythonic_keys ¤
Converts camelCase keys in a dict or list of dict to snake_case. Works recursively.