Story Acceptance Criteria
Writes acceptance criteria for a story from its description, design context, and answered question sub-tickets.
By default the result replaces the ticket’s Acceptance Criteria field and the story moves to Solution Architecture. When contentOutput targets Confluence, the criteria are instead published as a Confluence page, reviewer inline comments on that page are read before writing, and answers are posted back as comment replies.
Parameters
Configured via customParams in the agent JSON or the project .dmtools/config.js.
autoStartSolution/autoStartSolutionConfigFile— after the acceptance criteria are written, automatically trigger the solution workflow for the ticket using the given agent config file.contentOutput— output routing block; see below.
contentOutput
contentOutput.target—jira_field(default, current behavior),confluence, orboth.contentOutput.field— tracker field for thejira_field/bothtargets. Default in this agent’s config:Acceptance Criteria.contentOutput.operationType—replace(default) orappend.contentOutput.space/contentOutput.parentPageId— where the ticket’s page lives (required for Confluence targets).contentOutput.pageTitleSuffix— appended to the page title.contentOutput.includeInlineComments— fetch the page’s inline comments before the run and publishoutputs/confluence_replies.jsonafter it. Default:true.contentOutput.updateTrackerField— fortarget: confluence, also write the page link into the tracker field. Default:true.
Markup for Confluence targets. With target: confluence the tracker-specific CLI
prompts are selected by the confluence key of cliPromptsByTracker (see
instructions/tracker/confluence_markup_transform.md) instead of the configured default
tracker, so the agent authors Markdown that the Confluence sync can render. This selection
happens in buildEncodedConfig.js for encoded-config runs and in the dmtools CLI
(CliCommandBuilder) for direct dmtools run invocations. With target: both the tracker
markup is kept because the tracker field still receives the full content.
Human doc: agents/docs/agents/story_acceptance_criteria.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | story_acceptance_criteria.json |
| ContextId | — |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/story_acceptance_criteria.md
Actions
preJSAction: requireTicket.js
Require Ticket Pre-Action
- Source:
agents/js/requireTicket.js - No detected file I/O or side effects.
preCliJSAction: preCliContentOutputSetup.js
Pre-CLI Content Output Setup — shared pre-action for content-generating
- Source:
agents/js/preCliContentOutputSetup.js - No detected file I/O or side effects.
postJSAction: writeContentOutput.js
Write Content Output — unified post-action for content-generating agents
- Source:
agents/js/writeContentOutput.js - Side effects:
- post ticket comment (via tracker)
- Parameters (customParams):
contentOutput
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/story_acceptance_criteria.md
Custom params
-
contentOutput:{ "target": "jira_field", "field": "Acceptance Criteria", "operationType": "replace", "thenAction": "assignForSolutionArchitecture.js", "assignForReview": false }
Generated by js/agentDocGenerator.js