Start a do-epic chunk's issue in Jira: assigned, moved by a start transition and added to a board's active sprint

This commit is contained in:
Lilleman
2026-11-20 17:23:58 +01:00
parent 00b87e3fb9
commit 653fcbe3f1
13 changed files with 358 additions and 21 deletions
+3
View File
@@ -67,6 +67,9 @@ class EpicStore(typing.Protocol):
def set_scores(self, key: str, scores: dict[str, int], moves: str, comment: str) -> None | Failure:
"""Posts comment, markdown, on the epic's child issue named key, or on a sub-task of one, then sets its scores. The comment tells the team the scores, since a tracker's screens may not show them. scores holds each of L, E, I and S, and moves is the plan's Moves cell, which may be empty. An issue that holds a score keeps what it holds and is refused, as are an issue outside the epic and a blank comment. Where the scores cannot be set after the comment is posted, the Failure says so."""
def start_issue(self, key: str) -> str | None | Failure:
"""Shows the team that the epic's child issue named key, or a sub-task of one, is being worked. It assigns an issue nobody holds to the account the store works as. An issue someone else holds stays theirs, and the answer is their display name; otherwise the answer is None. Where the backend's settings say so, it also moves an issue whose work hasn't started and adds it to a sprint. An issue outside the epic is refused. A Failure names the first step that could not be made; each other step stands where the tracker took it."""
def finish_issue(self, key: str) -> None | Failure:
"""Moves the epic's child issue named key, or a sub-task of one, to a done status, so that read answers it as done; one already done stays as it is. An issue outside the epic is refused. A Failure says why the move could not be made: the issue's workflow gives no way to a done status, gives several the backend cannot choose between, or refuses the move."""