Move a finished item of a Jira plan by the transition and to the status the config names
CI / tests (pull_request) Successful in 2m17s

This commit is contained in:
2026-11-15 12:52:10 +01:00
parent d432fa207f
commit cab71cc03e
10 changed files with 229 additions and 20 deletions
+12 -1
View File
@@ -31,6 +31,16 @@ and readme.md, since the reviewers and the rules name those files.
Jira's backlog order, and `project-config plan` prints the setting as the config spells it. Such a
config must set `env-file`, and that file must hold ATLASSIAN_EMAIL and ATLASSIAN_API_TOKEN.
`jira-finish-transition` and `jira-finish-status` are optional settings, set together and only
beside such a plan. They say how `todo-item finish` moves an item's issue, since each Jira workflow
differs: by the workflow transition of that name, which must lead to the status of that name. Write
both as Jira shows them, and name a status Jira counts as done:
jira-finish-transition = "Mark as done"
jira-finish-status = "Done"
Left out, `todo-item finish` fails in a Jira plan.
`goals-and-audience` may name a Jira Cloud epic the same way, where `plan` names one too. The
epic's description is then the goals file, with ## Goals and ## Audience as headings, and
`project-config goals-and-audience` prints the setting as the config spells it. The description is
@@ -110,7 +120,8 @@ and its commits and pull request are titled "ABC-123 - …".
Exit 1, naming each fault on stderr, where no config names the checkout, or its config leaves out a
setting, names an unknown one, misspells a path, a language or a template, sets `wait-for-approval` or
`tooling-on-host` to anything but true or false, sets `notifier` to anything but mattermost or slack or
without `env-file`, or sets `readability-floor` to anything but a number
without `env-file`, sets one of `jira-finish-transition` and `jira-finish-status` without the other or
without a `plan` in Jira, or sets `readability-floor` to anything but a number
from 1 to 10, and where `env-file`, `notifier` or `touch-predictions` is asked for and not set. No path setting has a default.
"""
import pathlib