external/ag-shared/prompts/skills/jira/workflows/plan.md
Use this workflow when the user is planning JIRA ticket creation — i.e., drafting a plan that will be reviewed and adjusted before execution. The goal is to embed the correct field values and description template into the plan so the user can see and override the defaults before any API calls are made.
products/ subdirectory of this skill) based on the repository context.create.md:| Type | Issue Type | Track Value |
|---|---|---|
| Bug | "Bug" | "Bug" |
| Feature | "Task" | "Feature Request" |
| Improvement | "Task" | "Improvement" |
| Tech-debt | "Task" | "Housekeeping" |
| Docs | "Task" | "Doc change" |
Read the appropriate template file (from the templates/ subdirectory):
templates/bug.mdtemplates/feature-task.mdStructure the plan with two sections: Fields (the API parameters) and Description (the ticket body using the template). Fill in every value you can derive from context; mark unknowns with [TODO: ...] so the user knows what to fill in.
## Action: Create JIRA Ticket
### Fields
- **Cloud ID:** 1565837d-d6d1-4228-bcb2-4cb74df700f2
- **Project:** <from product file, e.g. AG>
- **Type:** <issueTypeName, e.g. Bug>
- **Summary:** <[Prefix] concise title>
- **Component:** <from product file, e.g. Charts>
- **Track:** <track value, e.g. Bug> (customfield_10501)
- **Priority:** <High | Medium | Low — default Medium>
- **Affects Version:** <version if known, or [TODO: test in browser]>
### Description
<Paste the filled-in template here, using the exact TC-based or numbered-list format from the template file. Do not use free-form ## headers.>
### Issue Links (if any)
- **Link type:** <e.g. Problem/Incident, Blocks, Relates>
- **Direction:** <this ticket "is caused by" / "blocks" / "relates to"> <OTHER-TICKET>
## headers.mcp__atlassian__createJiraIssue so execution doesn't need to discover them at runtime.[TODO: ...] rather than omitting the field. This lets the user decide whether to fill it in or remove it.Plans are an intermediate artifact that the user reviews and adjusts before execution. If the plan contains wrong defaults (e.g., a non-existent Track value), the user approves bad data. Execution then follows the plan faithfully, leading to API errors or incorrectly filed tickets. By embedding the correct defaults in the plan, the user can make informed adjustments and the execution step becomes straightforward.