Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
247584d
fix(triage): decouple completed from split and resolve Jira transitio…
jefferyb Nov 13, 2026
1ac67d3
fix(triage): address review feedback on fallback, idempotency, and docs
jefferyb Nov 13, 2026
e459281
docs(triage): clarify harness runner transition overrides in LOCAL.md
jefferyb Nov 13, 2026
a274b35
fix(triage): preserve split transition default and guard idempotent s…
jefferyb Nov 13, 2026
20bebaa
fix(triage): refine Jira transition fallback and idempotency
jefferyb Nov 13, 2026
f7716a7
fix(triage): expand Jira rejection denylist and require positive targ…
jefferyb Nov 13, 2026
711a39e
fix(triage): handle screen resolution fields in Jira fallback
jefferyb Nov 14, 2026
fbdff0b
Merge remote-tracking branch 'origin/main' into HEAD
jefferyb Nov 15, 2026
f1af399
Merge remote-tracking branch 'origin/main' into HEAD
jefferyb Nov 19, 2026
32c489e
fix(triage): skip exact-status Jira close regardless of resolution
jefferyb Nov 19, 2026
dcf84f2
fix(triage): rebuild bundled scripts with relative library paths
jefferyb Nov 19, 2026
f34c039
fix(triage): guard split done-status idempotency and empty resolution
jefferyb Nov 19, 2026
8907b96
fix(triage): delegate Jira close transitions to fullsend CLI
jefferyb Nov 20, 2026
6260e21
Merge branch 'main' into fix/triage-jira-completed-transition
waynesun09 Nov 21, 2026
55da9d7
fix(triage): restrict Jira closed fallback to default transition
jefferyb Nov 22, 2026
d7c5c6e
test(triage): tie harness split transition default to fallback and sy…
jefferyb Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions LOCAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ export JIRA_BASE_URL="https://your-site.atlassian.net"
# The post-scripts require the .fullsend directory; nothing sets it for you.
export FULLSEND_DIR="<path to the .fullsend directory>"
export FULLSEND_FORGE="jira"

# Transition names for closing issues — set to match your Jira workflow.
export JIRA_DUPLICATE_TRANSITION="Duplicate"
export JIRA_NOT_PLANNED_TRANSITION="Won't Do"
export JIRA_SPLIT_TRANSITION="Done"
```

Then export the credentials for one mode; setting both fails the run. They
Expand Down Expand Up @@ -169,6 +164,14 @@ export JIRA_API_URL="https://api.atlassian.com/ex/jira/${CLOUD_ID}"
unset FULLSEND_JIRA_TOKEN FULLSEND_JIRA_EMAIL JIRA_USER_EMAIL
```

The Jira harness (`harness/triage.yaml`) sets default transition names in `env.runner`
(`JIRA_DUPLICATE_TRANSITION="Duplicate"`, `JIRA_NOT_PLANNED_TRANSITION="Won't Do"`,
and `JIRA_SPLIT_TRANSITION="Obsolete"`, with `JIRA_COMPLETED_TRANSITION` unset by
default so `completed` falls back to `JIRA_SPLIT_TRANSITION` unless explicitly set).
To test with different transition names for your Jira workflow, override them in
a custom harness YAML overlay under `env.runner`, or export them when invoking
`scripts/post-triage.sh` directly.

Run `fullsend run triage` the same way as step 3 above — `--target-repo`
should still point at a local checkout of the codebase the Jira issue
concerns, since triage reads repository context (docs, existing issues,
Expand Down
61 changes: 45 additions & 16 deletions docs/triage.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,23 +297,20 @@ GitHub/GitLab auth vars:
| `FULLSEND_JIRA_TOKEN` | Jira API token, set as a repository secret (static-token mode). The harness maps it to `JIRA_TOKEN` in `env.runner` for post-script mutations, and the builtin `jira` provider reads it for sandbox reads; the sandbox receives the provider's opaque placeholder instead of the real token. The legacy `JIRA_TOKEN` secret is no longer read. Leave it unset when using client credentials. |
| `FULLSEND_JIRA_CLIENT_ID`, `FULLSEND_JIRA_CLIENT_SECRET` | OAuth 2.0 client credentials of an Atlassian service account, set as repository secrets instead of `FULLSEND_JIRA_TOKEN`. The harness maps both to `env.runner` only: the pre- and post-scripts mint a short-lived token for their REST calls (sent to `JIRA_API_URL`, which is then required) and pass the client variables to `fullsend issues`, and `fullsend run` mints and refreshes the sandbox token for the `jira` provider. The secret never reaches the sandbox. Setting them together with `FULLSEND_JIRA_TOKEN`, or setting only one of them, fails the run. |
| `FULLSEND_JIRA_EMAIL` | Optional repository secret. Email of a bot-user account. When set, requests use Basic auth with email and token; when unset or empty (a service account), Bearer auth with the token. The harness maps it to `JIRA_USER_EMAIL` in `env.runner`, and `fullsend run` sets `JIRA_USER_EMAIL` from it so the sandbox gets it through `env/jira/triage.env`. The legacy `JIRA_USER_EMAIL` secret is no longer read. |
| `FULLSEND_DIR` | The `.fullsend` directory. The post-script passes it to `fullsend issues post-comment --fullsend-dir`, which reads the Jira site and API gateway from `tracker.jira` in its `config.yaml`. The harness passes `${FULLSEND_DIR}` through to `env.runner` from the host environment, so the operator must set it. |
| `FULLSEND_DIR` | The `.fullsend` directory. The post-script passes it to `fullsend issues post-comment --fullsend-dir` and `fullsend issues transition --fullsend-dir`, which read the Jira site and API gateway from `tracker.jira` in its `config.yaml`. The harness passes `${FULLSEND_DIR}` through to `env.runner` from the host environment, so the operator must set it. |
| `JIRA_BASE_URL` | Base URL of the Jira Cloud site (e.g. `https://<site>.atlassian.net`). Used for browse links. |
| `JIRA_API_URL` | Where the post-script curl helpers and the sandboxed skills send REST calls. `fullsend run` sets it to the Atlassian API gateway for the site (`https://api.atlassian.com/ex/jira/<cloudId>`), which accepts both bot-account and service-account tokens. When it is unset, token mode falls back to `JIRA_BASE_URL` and OAuth mode fails, because the site URL rejects minted tokens. |

Jira triage requires a fullsend release that includes the config-backed Jira
commands
Jira triage requires [Fullsend v0.56.1](https://github.com/fullsend-ai/fullsend/releases/tag/v0.56.1)
or later, which includes the config-backed Jira commands
([fullsend-ai/fullsend#9078](https://github.com/fullsend-ai/fullsend/pull/9078)),
so that `fullsend issues post-comment --tracker jira --fullsend-dir` can read
`tracker.jira` from `FULLSEND_DIR`.

**Upgrade requirement:** Jira triage also needs a fullsend release that
includes [fullsend-ai/fullsend#9411](https://github.com/fullsend-ai/fullsend/issues/9411).
With it, `fullsend run` sets `JIRA_USER_EMAIL` from `FULLSEND_JIRA_EMAIL`. The
legacy `JIRA_TOKEN` and `JIRA_USER_EMAIL` secrets are no longer read. The
sandbox's builtin `jira` provider, in either credential mode, needs a fullsend
release that includes
[fullsend-ai/fullsend#9233](https://github.com/fullsend-ai/fullsend/pull/9233).
the shared `fullsend issues transition` command
([fullsend-ai/fullsend#9437](https://github.com/fullsend-ai/fullsend/pull/9437)),
`JIRA_USER_EMAIL` wiring from `FULLSEND_JIRA_EMAIL`
([fullsend-ai/fullsend#9411](https://github.com/fullsend-ai/fullsend/issues/9411)),
and the sandbox's builtin `jira` provider
([fullsend-ai/fullsend#9233](https://github.com/fullsend-ai/fullsend/pull/9233)).
The legacy `JIRA_TOKEN` and `JIRA_USER_EMAIL` secrets are no longer read.

Closing an issue (`duplicate`, `not-planned`, `completed`, `split` actions) performs a
Jira workflow transition rather than a status field write, since Jira has no
Expand All @@ -322,13 +319,45 @@ independently:

| Variable | Used for |
|----------|----------|
| `JIRA_COMPLETED_TRANSITION` | The `completed` action (falls back to `JIRA_SPLIT_TRANSITION` when unset). |
| `JIRA_DUPLICATE_TRANSITION` | The `duplicate` action. |
| `JIRA_NOT_PLANNED_TRANSITION` | The `not-planned` action. |
| `JIRA_SPLIT_TRANSITION` | The `split` action, and the `completed` action (both close with GitHub reason `completed`). |
| `JIRA_SPLIT_TRANSITION` | The `split` action. |

If the relevant variable is unset when that action fires, the post-script
fails loudly rather than silently skipping the close — set all three to the
same transition name if your Jira workflow doesn't distinguish between them.
fails loudly rather than silently skipping the close (for `completed`,
`JIRA_COMPLETED_TRANSITION` falls back to `JIRA_SPLIT_TRANSITION` with a notice
if set). Set all four to the same transition name if your Jira workflow doesn't
distinguish between them.

Transitions are executed through `fullsend issues transition --tracker jira`
(requires [Fullsend v0.56.1](https://github.com/fullsend-ai/fullsend/releases/tag/v0.56.1)
or later). If the issue is already in a `done`-category status matching the
configured transition name (or the destination status name of that transition
when uniquely offered), the transition is skipped idempotently. Otherwise, if the
configured transition name is available in the workflow, the post-script runs
`fullsend issues transition --transition <name>`. When `completed` or `split`
uses the un-overridden harness default (`JIRA_SPLIT_TRANSITION="Obsolete"`,
including when `JIRA_COMPLETED_TRANSITION` is unset and falls back to it) and
`"Obsolete"` is not offered in the workflow, the post-script emits a warning and
falls back to `fullsend issues transition --state closed`, which skips issues
already in a `done`-category status, applies the single available
`done`-category transition (failing loudly if multiple `done`-category
transitions are ambiguous), and fills a required resolution by ID only when Jira
offers a single allowed value with no default. Note that when only a single
`done`-category transition is offered, `--state closed` will apply it even if
its workflow meaning is a rejection/won't-do state (such as `"Won't Do"`,
`"Duplicate"`, or `"Cannot Reproduce"`). If you explicitly configure
`JIRA_COMPLETED_TRANSITION` or override `JIRA_SPLIT_TRANSITION` to any name other
than `"Obsolete"` that Jira does not offer, the post-script fails loudly instead of
falling back (because the harness default is `"Obsolete"`, an override explicitly
retaining `"Obsolete"` still benefits from the fallback).
Operators whose workflows lack `"Obsolete"`, have multiple `done`-category
transitions, or expose rejection-style `done` transitions should set
`JIRA_COMPLETED_TRANSITION` and `JIRA_SPLIT_TRANSITION` explicitly. Because
`post-triage.sh` does not pass `--resolution`, any close transition that
requires a resolution must either define a default value or offer a single
allowed value.

Cross-project issue creation for Jira prerequisites is gated by a
`tracker.jira.allowed_targets.projects` list of Jira project keys in
Expand Down
3 changes: 3 additions & 0 deletions scripts/harness-jira-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ check_runner_mapping "${TRIAGE_HARNESS}" triage FULLSEND_DIR '${FULLSEND_DIR}'
# their own names, so jira-auth.lib.sh and the fullsend CLI read them.
check_runner_mapping "${TRIAGE_HARNESS}" triage FULLSEND_JIRA_CLIENT_ID '${FULLSEND_JIRA_CLIENT_ID}'
check_runner_mapping "${TRIAGE_HARNESS}" triage FULLSEND_JIRA_CLIENT_SECRET '${FULLSEND_JIRA_CLIENT_SECRET}'
check_runner_mapping "${TRIAGE_HARNESS}" triage JIRA_SPLIT_TRANSITION 'Obsolete'
check_runner_mapping "${TRIAGE_HARNESS}" triage JIRA_DUPLICATE_TRANSITION 'Duplicate'
check_runner_mapping "${TRIAGE_HARNESS}" triage JIRA_NOT_PLANNED_TRANSITION "Won't Do"

# The real FULLSEND_JIRA_* values (token, email, client ID and secret) must
# never reach the sandbox, so no sandbox env, Jira host file or provider
Expand Down
3 changes: 3 additions & 0 deletions scripts/lib/github-triage-ops.lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ tracker_post_sticky_comment() {

tracker_close_issue() {
local reason="$1"
if [[ "${reason}" == "split" ]]; then
reason="completed"
fi
gh issue close "${ISSUE_NUMBER}" --repo "${REPO}" --reason "${reason}"
}

Expand Down
107 changes: 89 additions & 18 deletions scripts/lib/jira-triage-ops.lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# jira-triage-ops.lib.sh — Jira Cloud tracker operations for triage scripts.
#
# Bundled into pre-triage.sh and post-triage.sh via triage-ops.lib.sh.
# Labels, transitions, and cross-project issue creation use curl against
# the Jira Cloud REST API v3. Comment posting shells out to
# `fullsend issues post-comment --tracker jira`, which handles Jira's
# markdown-to-ADF conversion and marker-based find-and-update semantics
# that raw REST calls would otherwise have to reimplement.
# Labels, components, read-only status/transition pre-flight checks, and
# cross-project issue creation use curl against the Jira Cloud REST API v3.
# Comment posting shells out to `fullsend issues post-comment --tracker jira`,
# which handles Jira's markdown-to-ADF conversion and marker-based
# find-and-update semantics, and close transitions shell out to
# `fullsend issues transition --tracker jira` (Fullsend v0.56.1+) so triage
# and core fullsend share one transition and resolution policy.
#
# Jira Cloud only (v1): the issue host must match *.atlassian.net. Jira
# Server/Data Center is not supported.
Expand Down Expand Up @@ -49,11 +51,12 @@
# `fullsend` shell-outs below.
#
# Optional env vars:
# JIRA_COMPLETED_TRANSITION — transition name for the "completed" action

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MEDIUM: Header comment and PR body still say JIRA_COMPLETED_TRANSITION defaults to "Closed"; the shipped harness has no default

Commit a274b35 removed JIRA_COMPLETED_TRANSITION: "Closed" from harness/triage.yaml, and harness/triage.yaml is no longer in the diff. This header (lines 46-48) still says (default: "Closed"; falls back to JIRA_SPLIT_TRANSITION when unset), and the rebuilt bundles carry the same text (scripts/post-triage.sh, scripts/pre-code-jira.sh, scripts/pre-triage.sh). The PR body also still says it "Adds JIRA_COMPLETED_TRANSITION (defaulting to "Closed") in harness/triage.yaml" and lists triage.yaml under Changes.

With the shipped harness, completed falls back to JIRA_SPLIT_TRANSITION="Obsolete". So completed is decoupled from split only for operators who set the variable, and the reported failure is fixed by the name fallback, not by decoupling. LOCAL.md and docs/triage.md are correct; this header, which operators read first, is wrong. (The earlier header thread asked to add a "Closed" default; that default was later removed, so this is a new mismatch.)

Suggestion: Change the header to "no default; falls back to JIRA_SPLIT_TRANSITION when unset" and run make script-build so all four copies match. Update the PR title and body to say that, by default, completed still routes through JIRA_SPLIT_TRANSITION (with the Done-name fallback) and that harness/triage.yaml is unchanged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 20bebaa (20bebaa): updated the JIRA_COMPLETED_TRANSITION header comment in scripts/lib/jira-triage-ops.lib.sh (and rebuilt the bundles) to state (no default; falls back to JIRA_SPLIT_TRANSITION when unset), and updated the PR body to remove the stale "Closed" default / harness/triage.yaml references and note that validation used mocked workflow responses (linking fullsend-ai/fullsend#6704).

# (no default; falls back to
# JIRA_SPLIT_TRANSITION when unset)
# JIRA_DUPLICATE_TRANSITION — transition name for the "duplicate" action
# JIRA_NOT_PLANNED_TRANSITION — transition name for the "not planned" action
# JIRA_SPLIT_TRANSITION — transition name for the "split" and
# "completed" actions (both close with
# GitHub reason "completed")
# JIRA_SPLIT_TRANSITION — transition name for the "split" action
# JIRA_CREATE_ISSUE_TYPE — issue type name for cross-project issue
# creation (default: "Task")

Expand Down Expand Up @@ -378,6 +381,20 @@ _jira_post_comment() {
--marker "${marker}" --result -
}

# Execute a Jira workflow transition through the fullsend CLI (v0.56.1+),
# which reads the Jira site and API gateway from tracker.jira in FULLSEND_DIR
# and shares the upstream transition and resolution policy.
_jira_transition() {
_jira_require_vars || return 1
if [[ -z "${FULLSEND_DIR:-}" ]]; then
echo "ERROR: FULLSEND_DIR is not set; the fullsend CLI needs it for the tracker.jira settings" >&2
return 1
fi
jira_auth_fullsend fullsend "${JIRA_TOKEN:-}" "${JIRA_USER_EMAIL:-}" \
issues transition --tracker jira --fullsend-dir "${FULLSEND_DIR}" \
--project "${REPO}" --number "${JIRA_ISSUE_NUM}" "$@"
}

# --- Issues ---

tracker_close_issue() {
Expand All @@ -386,37 +403,91 @@ tracker_close_issue() {
case "${reason}" in
duplicate) transition_var="JIRA_DUPLICATE_TRANSITION" ;;
"not planned") transition_var="JIRA_NOT_PLANNED_TRANSITION" ;;
completed) transition_var="JIRA_SPLIT_TRANSITION" ;;
completed) transition_var="JIRA_COMPLETED_TRANSITION" ;;
split) transition_var="JIRA_SPLIT_TRANSITION" ;;
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Resolved
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Resolved
*)
echo "ERROR: unknown close reason '${reason}' — no Jira transition mapping" >&2
return 1
;;
esac

local transition_name="${!transition_var:-}"
if [[ -z "${transition_name}" && "${reason}" == "completed" && -n "${JIRA_SPLIT_TRANSITION:-}" ]]; then
transition_var="JIRA_SPLIT_TRANSITION"
transition_name="${JIRA_SPLIT_TRANSITION}"
echo "NOTICE: JIRA_COMPLETED_TRANSITION is not set; falling back to JIRA_SPLIT_TRANSITION ('$(_gha_sanitize "${transition_name}")')"
fi

if [[ -z "${transition_name}" ]]; then
echo "ERROR: ${transition_var} is not set — cannot close issue ${ISSUE_NUMBER} via Jira transition for reason '${reason}'" >&2
return 1
fi

# Idempotency pre-flight: skip when the issue is already in the configured
# terminal status (matching the configured transition name directly).
local current_status_json current_category="" current_status_name=""
current_status_json=$(_jira_api GET "/issue/${ISSUE_NUMBER}?fields=status" 2>/dev/null) || true
if [[ -n "${current_status_json}" ]]; then
current_category=$(echo "${current_status_json}" | jq -r '.fields.status.statusCategory.key // empty' 2>/dev/null) || current_category=""
current_status_name=$(echo "${current_status_json}" | jq -r '.fields.status.name // empty' 2>/dev/null) || current_status_name=""
if [[ "${current_category}" == "done" && -n "${current_status_name}" && "${current_status_name,,}" == "${transition_name,,}" ]]; then
echo "Issue ${ISSUE_NUMBER} is already in status '$(_gha_sanitize "${current_status_name}")' (${current_category}); skipping transition for reason '${reason}'"
return 0
fi
fi

local transitions
transitions=$(_jira_api GET "/issue/${ISSUE_NUMBER}/transitions" 2>/dev/null) || {
echo "ERROR: failed to list transitions for issue ${ISSUE_NUMBER}" >&2
return 1
}
local transition_id
transition_id=$(echo "${transitions}" | jq -r --arg name "${transition_name}" \
'[.transitions[] | select(.name == $name)][0].id // empty')
if [[ -z "${transition_id}" ]]; then
echo "ERROR: transition '${transition_name}' (from ${transition_var}) is not available on issue ${ISSUE_NUMBER}" >&2
local matching_count target_status_name=""
matching_count=$(echo "${transitions}" | jq -r --arg name "${transition_name}" \
'if (type == "object" and (.transitions | type) == "array") then [.transitions[] | select(.name == $name)] | length else error("expected transitions array") end' 2>/dev/null) || {
echo "ERROR: unexpected transitions response for issue ${ISSUE_NUMBER}" >&2
return 1
}
if [[ ! "${matching_count}" =~ ^[0-9]+$ ]]; then
echo "ERROR: unexpected transitions response for issue ${ISSUE_NUMBER}" >&2
return 1
fi

if ! _jira_api POST "/issue/${ISSUE_NUMBER}/transitions" \
--data "$(jq -cn --arg id "${transition_id}" '{transition:{id:$id}}')" > /dev/null; then
echo "ERROR: failed to transition issue ${ISSUE_NUMBER} via '${transition_name}'" >&2
return 1
if [[ "${matching_count}" -eq 1 && "${current_category:-}" == "done" && -n "${current_status_name:-}" ]]; then
target_status_name=$(echo "${transitions}" | jq -r --arg name "${transition_name}" \
'[.transitions[] | select(.name == $name)][0].to.name // empty' 2>/dev/null) || target_status_name=""
if [[ -n "${target_status_name}" && "${target_status_name,,}" == "${current_status_name,,}" ]]; then
echo "Issue ${ISSUE_NUMBER} is already in target status '$(_gha_sanitize "${current_status_name}")' (done); skipping transition for reason '${reason}'"
return 0
fi
fi

if [[ "${matching_count}" -gt 0 ]]; then
if ! _jira_transition --transition "${transition_name}"; then
echo "ERROR: failed to transition issue ${ISSUE_NUMBER} via '$(_gha_sanitize "${transition_name}")'" >&2
return 1
fi
return 0
fi

# Fall back to `--state closed` only when the transition name came from the
# un-overridden harness default (JIRA_SPLIT_TRANSITION="Obsolete" in
# harness/triage.yaml, including when `completed` fell back to it because
# JIRA_COMPLETED_TRANSITION was unset). Any operator-configured transition
# name that Jira does not offer fails loudly below.
local default_split_transition="Obsolete"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MEDIUM: The --state closed fallback depends on a hard-coded copy of the harness default "Obsolete", and no test ties the two together

local default_split_transition="Obsolete" duplicates JIRA_SPLIT_TRANSITION: "Obsolete" in harness/triage.yaml line 191. The fallback fires only when transition_var == JIRA_SPLIT_TRANSITION and the name equals that literal (a case-sensitive match).

Impact:

  • No test reads harness/triage.yaml and checks it against this constant. scripts/harness-jira-test.sh has no Obsolete or SPLIT_TRANSITION assertion. If the harness default changes, the fallback stops firing with no test failure, and the original exit-1 bug on workflows without "Obsolete" comes back.
  • The string comparison cannot tell the harness default apart from an operator overlay that sets JIRA_SPLIT_TRANSITION="Obsolete" on purpose. That operator still gets the silent fallback, although docs/triage.md lines 350-352 say an override fails loudly.

Suggestion: Pass the fallback signal from the harness, for example a runner env flag next to JIRA_SPLIT_TRANSITION, instead of comparing against a literal. At minimum, add a test that reads JIRA_SPLIT_TRANSITION from harness/triage.yaml and asserts it equals this constant. Reword the docs to say that an override to any name other than "Obsolete" fails loudly.

Verified: read code at head (lib.sh:472-487, harness/triage.yaml:191); grep shows harness-jira-test.sh has no Obsolete assertion at 55da9d7; raised by: Claude, DeepSeek

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in d7c5c6e: Added check_runner_mapping assertions in scripts/harness-jira-test.sh for JIRA_SPLIT_TRANSITION ('Obsolete'), JIRA_DUPLICATE_TRANSITION ('Duplicate'), and JIRA_NOT_PLANNED_TRANSITION ("Won't Do") to couple harness defaults to fallback constants under test. Clarified in docs/triage.md that overrides to any name other than "Obsolete" fail loudly if unavailable.

if [[ ( "${reason}" == "completed" || "${reason}" == "split" ) \
&& "${transition_var}" == "JIRA_SPLIT_TRANSITION" \
&& "${transition_name}" == "${default_split_transition}" ]]; then
echo "::warning::Transition '$(_gha_sanitize "${transition_name}")' (from ${transition_var}) is not available on issue ${ISSUE_NUMBER}; falling back to 'fullsend issues transition --state closed'"
if ! _jira_transition --state closed; then
echo "ERROR: failed to close issue ${ISSUE_NUMBER} via 'fullsend issues transition --state closed'" >&2
return 1
fi
return 0
fi

echo "ERROR: transition '$(_gha_sanitize "${transition_name}")' (from ${transition_var}) is not available on issue ${ISSUE_NUMBER}" >&2
return 1
}

_text_to_adf() {
Expand Down
Loading
Loading