Bulk Bugs Creation
Creates many bug tickets at once from a single test failure analysis: drafts each bug and creates them in bulk with links back to the source.
Parameters
Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).
batchSize— maximum number of items processed in one batch.failedReasonField— tracker field that stores the failure reason.failedTCsJql— JQL selecting the failed test cases to convert into bugs.feedbackLoop— feedback-loop options (how review comments are collected and reapplied).openBugsJql— JQL selecting the open bugs to include.removeLabel— label removed from the ticket after a successful run (idempotency cleanup).smTriggerLabel— label that marks the ticket as triggered by the SM rule.
Human doc: agents/docs/agents/bulk_bugs_creation.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | bulk_bugs_creation.json |
| ContextId | bulk_bugs_creation |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/bulk_bugs_creation.md
Actions
preCliJSAction: prepareBulkBugsCreationContext.js
Prepare Bulk Bugs Creation Context (preCliJSAction for bulk_bugs_creation agent)
- Source:
agents/js/prepareBulkBugsCreationContext.js - Writes:
input/<KEY>/context.mdinput/<KEY>/failed_tcs.jsoninput/<KEY>/no_failed_tcs.mdinput/<KEY>/open_bugs.json
- Parameters (customParams):
batchSizefailedReasonFieldfailedTCsJqlopenBugsJql
postJSAction: postBulkBugsCreation.js
Post Bulk Bugs Creation Action (postJSAction for bulk_bugs_creation agent)
- Source:
agents/js/postBulkBugsCreation.js - Side effects:
- remove label “sm_test_automation_triggered”
- post Jira comment
- link Jira issues
- attach file to ticket
- Parameters (customParams):
failedReasonFieldremoveLabelsmTriggerLabel
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/bulk_bugs_creation.md
Custom params
-
batchSize:50 -
openBugsJql:"project = {jiraProject} AND issuetype in (Bug) AND status not in (Done)" -
failedTCsJql:"project = {jiraProject} AND issuetype = \"Test Case\" AND status = Failed AND (labels is EMPTY OR labels NOT IN (sm_bug_creation_triggered)) ORDER BY created ASC" -
removeLabel:"sm_bug_creation_triggered" -
smTriggerLabel:"sm_bulk_bugs_creation_triggered" -
feedbackLoop:{ "postAction": { "enabled": true, "maxAttempts": 1 } } -
failedReasonField(used by JS action)
Generated by js/agentDocGenerator.js