API Controller Factories
WorkItemFactory
- class WorkItemFactory
- static create_work_item(data: dict) jiratui.models.JiraIssue
Creates an instance of JiraIssue for a work item as returned by the API.
- Parameters:
data – the work item as returned by the API.
- Returns:
An instance of JiraIssue with the value of the work item’s fields supported by the app.
build_comments
- jiratui.api_controller.factories.build_comments(raw_comments: list[dict]) list[jiratui.models.IssueComment]
Builds a list of IssueComment.
- Parameters:
raw_comments – a list of dictionaries with the details of comments. This is the result of the API.
- Returns:
A list of IssueComment instances.