Bug Creation
Turns a ready QA finding into a well-formed bug ticket: drafts summary, description, severity and steps to reproduce, creates the bug and links it to the source ticket.
Parameters
Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).
checkOpenPR— whentrue, skip tickets that already have an open pull request for this work.openBugsJql— JQL selecting the open bugs to include.removeLabel— label removed from the ticket after a successful run (idempotency cleanup).
Human doc: agents/docs/agents/bug_creation.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | bug_creation.json |
| ContextId | bug_creation |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/bug_creation.md
Actions
preJSAction: checkWipLabel.js
Check WIP Label Pre-Action
- Source:
agents/js/checkWipLabel.js - Side effects:
- post Jira comment
- Parameters (customParams):
checkOpenPR
preCliJSAction: prepareBugCreationContext.js
Prepare Bug Creation Context (preCliJSAction for bug_creation agent)
- Source:
agents/js/prepareBugCreationContext.js - Writes:
input/<KEY>/input/<KEY>/historical_done_bugs.mdinput/<KEY>/no_open_bugs.mdinput/<KEY>/ticket.md
- Side effects:
- post Jira comment
- Parameters (customParams):
openBugsJql
postJSAction: postBugCreation.js
Post Bug Creation Action (postJSAction for bug_creation agent)
- Source:
agents/js/postBugCreation.js - Side effects:
- remove label “sm_test_automation_triggered”
- post Jira comment
- link Jira issues
- Parameters (customParams):
removeLabel
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/bug_creation.md
Custom params
openBugsJql:"project = {jiraProject} AND issuetype in (Bug) AND status not in (Done)"removeLabel:"sm_bug_creation_triggered"checkOpenPR(used by JS action)
Generated by js/agentDocGenerator.js