Skip to content

fix(LAN-0): open the move form when jira refuses a move - #21

Merged
cornedor merged 1 commit into
mainfrom
issue/LAN-0-refused-move-opens-form
Nov 12, 2026
Merged

cornedor merged 1 commit into
mainfrom
issue/LAN-0-refused-move-opens-form

Conversation

@cornedor

Copy link
Copy Markdown
Owner

Moving an issue to a status whose workflow validator wants a comment ("Add a comment, or comment first and then move the work item") failed on the web board with only a toast: the validator isn't a FieldRequiredValidator, so NeedsInput stayed false and the board posted the bare move.

  • jira.Refusal gives Jira's own reason for a 400.
  • POST /issues/{key}/transition answers 422 with that reason instead of 502, so the browser can tell a refusal from an outage.
  • board.js moveCol opens the move form (screen fields plus Comment) with Jira's reason as its intro on a 422; other errors still toast.

Test: TestTransitionRefused fails on main (502) and passes here. Tested by hand on a real Jira: the Waiting for move now opens the form.

The terminal board has the same gap (prepareJiraMove); not changed here.

A workflow validator that wants a comment (not a FieldRequiredValidator) went
unnoticed, so the board posted the bare move and only toasted Jira's 400.
The transition endpoint now answers 422 with Jira's reason, and the board opens
the move's form with that reason on it.
@cornedor
cornedor merged commit 812faee into main Nov 12, 2026
7 checks passed
@cornedor
cornedor deleted the issue/LAN-0-refused-move-opens-form branch November 12, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant