fix(jira): resolve missing stories status, storiesListId, and progress model context#546
Merged
zbigniewsobiecki merged 1 commit intodevfrom Feb 25, 2026
Merged
Conversation
…s model context The splitting agent on JIRA projects failed because: 1. The PM wizard's JIRA_STATUS_SLOTS omitted 'stories', so users couldn't configure the stories status mapping. 2. promptContext.ts only read storiesListId from Trello config, leaving it undefined for JIRA projects — the agent hallucinated a container ID. 3. The progress model had no agent-role context, generating misleading messages like "split main.py" instead of referencing work item breakdown. Changes: - Add 'stories' to JIRA_STATUS_SLOTS in pm-wizard - Fall back to JIRA project key for storiesListId in promptContext - Auto-transition new JIRA issues to stories status after creation - Extract AGENT_ROLE_HINTS to shared agentMessages.ts, wire into both ackMessageGenerator and progressModel - Add tests for all new behavior Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes three bugs observed when running the splitting agent on JIRA projects:
JIRA_STATUS_SLOTSomittedstories, so users couldn't configure which JIRA status corresponds to the stories stage. Added it aftersplittingto matchTRELLO_LIST_SLOTS.storiesListIdalways undefined for JIRA —promptContext.tsonly read fromgetTrelloConfig(). For JIRA projects the splitting prompt renderedSTORIES_LIST_ID: NOT_CONFIGURED, causing the agent to hallucinate a container ID and loop. Now falls back to the JIRA project key (e.g.BTS), which is whatCreateWorkItem'scontainerIdneeds.Agent role:hints (extracted to sharedAGENT_ROLE_HINTSinagentMessages.ts) so the progress model generates contextually correct messages.Additionally:
AGENT_ROLE_HINTSextracted fromackMessageGenerator.tsto sharedagentMessages.ts, used by both ack and progress modelsFiles changed
src/config/agentMessages.tsAGENT_ROLE_HINTSmapsrc/router/ackMessageGenerator.tsAGENT_ROLE_HINTSinstead of local constsrc/backends/progressModel.tsAgent role:line to progress promptsrc/agents/shared/promptContext.tsstoriesListIdsrc/pm/jira/adapter.tsweb/src/components/projects/pm-wizard.tsxstoriestoJIRA_STATUS_SLOTSTest plan
storiesListIdresolves to project keyAGENT_ROLE_HINTS🤖 Generated with Claude Code