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. -
responseTarget:"tracker"—outputs/response.mdis posted to the tracker, so on Jira the output-format prompt is Jira wiki markup (conditionisResponseToTracker.js).
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:
- post ticket comment (via tracker)
- Parameters (customParams):
failedReasonFieldfeedbackLoopproviderTransientBackoffSecremoveLabelsmTriggerLabeltrackerProvider
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/bulk_bugs_creation.md
Custom params
-
responseTarget:"tracker" -
batchSize:50 -
openBugsJql:"project = {jiraProject} AND issuetype in (Bug) AND status not in ({status.DONE:Done})" -
failedTCsJql:"project = {jiraProject} AND issuetype = \"Test Case\" AND {stage.FAILED: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) -
providerTransientBackoffSec(used by JS action) -
trackerProvider(used by JS action)
Generated by js/agentDocGenerator.js