How to Write a Jira Story an AI Agent Can Actually Execute
This is Part 9 of the series. Part 8 covers how we measured human and AI delivery.
The most important improvement we made to our AI-agent workflow was not a model switch, a new prompt, or a more sophisticated API integration.
It was writing better stories.
That sounds almost too ordinary to be an AI lesson. It is not. An agent can only execute what the story makes explicit. When the story contains a clear objective, enough context, a definition of success, and the necessary constraints, the agent can often perform the mechanical work reliably. When the story contains only a title, the agent has to guess what the team meant.
A guess can produce fluent text, a plausible plan, or a correctly formatted Jira issue. It can also produce the wrong result with impressive confidence.
We learned this through two different experiences. One was a failure: a story-only task asking for follow-up email copy, where the title used an internal nickname for an event. The other was a step change in our Sprint workflow: once we supplied a structured table with task names, story points, and assignees, Sophie could turn the agreed plan into Jira issues consistently.
The lesson is simple:
A story is not a label for work. It is the execution context the agent will use to decide what to do.
There is a second lesson underneath it, and it is the one we did not expect. Every decision a story leaves undefined becomes a decision the workflow must resolve, either through an explicit agent rule or by stopping for human input. Writing a Jira story for an AI agent well is not documentation hygiene. It is how you decide how much authority the agent actually has.
A title is not a brief
A Jira title is useful for finding and sorting work. It is rarely enough to execute work safely.
Our real story title used an internal nickname for an event. To keep the example general, we use an invented nickname here. Consider this title:
Create Spring Clean follow-up email
A person on the team may know exactly what it means. They may remember the event, the audience, the previous conversation, the product or initiative involved, and the intended call to action.
The agent does not automatically share that memory.
In our case, the issue had a title but no description, and the nickname also happened to be the name of a consumer product. Sophie interpreted it that way and generated several polished follow-up emails about the product. The task was actually related to an event. The writing was competent, but the deliverable was irrelevant to the intended context.
This was not a failure of grammar or API execution. It was a failure of specification.
The title named a phrase. It did not define:
- what the phrase referred to;
- who would receive the email;
- why the email was being written;
- what outcome the team wanted;
- what information Sophie was allowed to assume;
- what should happen if the context was unclear.
The task looked small because the title was short. The missing context made it unsafe to execute.
Story quality is an authority control
Before the anatomy, it is worth being precise about what a good story actually does, because “write clearer requirements” is advice every team has already heard and mostly ignored.
An ambiguous story does not just risk a bad deliverable. It transfers decisions to the agent silently. Who the audience is, what the internal label means, which Epic to attach, whether the work is finished, whether sending is authorized: every one of those is a decision, and a story that does not answer it has delegated it without anyone choosing to.
That is why the event email failure matters more than a wasted draft. Sophie decided what the nickname meant. Nobody granted her that authority; the story simply left the meaning open, and the workflow did not force a clarification before execution. An agent working from an incomplete specification may resolve the gap rather than stall, which is why the stopping rule must be explicit.
Seen that way, story structure belongs in the same category as least-privilege credentials and tool restrictions. Those limit what the agent can do. A specification limits what the agent has to decide. Both narrow the surface where something can go wrong without a person noticing.
This also sets the standard for the rest of this post. The goal is not the longest possible instruction. It is to make the consequential decisions visible in the story and leave the uncertain ones with a person.
The anatomy of a Jira story for an AI agent
A story does not need to be long to be useful. It needs to answer the questions that determine the work.
We now think about an executable story as having eight parts.
1. Objective
State what must be produced or changed.
Weak:
Prepare the email.
Stronger:
Draft three follow-up email options for attendees of the Spring Clean community event. The output should be ready for the Developer responsible for this item to review and choose from.
The objective should describe the deliverable, not merely the activity.
2. Context
Explain the situation that gives the task its meaning.
Include the project, event, customer, campaign, incident, or previous decision involved. If the task uses an internal acronym or nickname, define it in the story.
"Spring Clean" is our internal name for a community event. This is not a product follow-up. The recipients attended the event and should receive a post-event message.
A useful rule is:
If a teammate who joined the project today would need to ask a question, the answer belongs in the story or in a linked source.
3. Audience
Identify who will read, use, approve, or receive the result.
For content work, specify the audience directly:
Audience: people who attended the Spring Clean event. Tone: warm, concise, and professional.
For technical work, the audience may be developers, support staff, an executive reviewer, or an external customer. The audience affects vocabulary, format, depth, and risk.
4. Purpose
Explain why the work matters.
Purpose: thank attendees, reinforce the event's main message, and invite them to the next step without making an unsupported sales claim.
Purpose prevents the agent from optimizing for the wrong thing. “Write an email” does not tell the agent whether the priority is attendance, conversion, clarification, apology, retention, or internal review.
5. Definition of success
Describe what a correct result must contain.
For the event email, that could be:
Success criteria: - provide three distinct subject lines; - write three drafts, each under 150 words; - mention the event without inventing details; - include a clear call to action; - use placeholders for any missing names, dates, or links; - do not send the email; - add the drafts as an English Jira comment for human review.
A definition of success is especially important when the agent can produce many outputs that are technically valid. Without acceptance criteria, “done” can mean “the model generated something.”
6. Inputs and source of truth
Tell the agent where the facts come from.
Sources: - use the event notes attached to this issue; - use the approved event description in the linked document; - use Jira as the source of truth for the issue status and assignee; - do not infer missing dates, URLs, prices, or attendee details.
If there is no source document, say so. A missing source is itself a constraint.
7. Constraints and permissions
State what the agent may and may not do.
Constraints: - write the result in English; - do not send the email; - do not contact attendees; - do not change the assignee; - do not mark the issue Done; - if required context is missing, comment with the questions and wait for human input.
This is where the story connects to the wider operating contract. The system prompt may provide global boundaries, but task-specific limits still belong in the issue.
8. Output format and handoff
Specify where the result should go and who decides what happens next.
Output: - add the three drafts as a Jira comment; - label the recommended option; - move the issue to Review; - the Developer responsible for this item will select and approve the final version.
The output location matters. A good answer in the wrong place is operationally incomplete.
On our board, Review is a workflow status, shown as a column between In Progress and Done, where the agent’s output waits for a person to accept it. It is not the Sprint Review, the Scrum event where the Scrum Team inspects the outcome of the Sprint with stakeholders. Name the handoff status your workflow actually uses. If your board does not have a Review column yet, say explicitly that the agent must not close the issue.
The same task, written two ways
Here is the kind of story that looks executable but is not:
Summary: Create Spring Clean follow-up email Description: Please create an email. Assignee: Sophie
The issue does not define the meaning of the nickname, the audience, the goal, the source material, the approval state, or whether sending is authorized.
A safer version would be:
Summary: Draft post-event follow-up email for Spring Clean attendees Context: "Spring Clean" is our internal name for a community event. This task is about a post-event communication, not a cleaning product. Objective: Draft three English follow-up email options for people who attended the event. Audience: Event attendees. The tone should be warm, concise, and professional. Purpose: Thank attendees, reinforce the event's main message, and invite them to the next approved action. Sources: Use the event notes attached to this issue. If the notes are unavailable, do not invent event details. Success criteria: - three subject-line options; - three short email drafts, each under 150 words; - no invented dates, names, URLs, or claims; - placeholders where information is missing; - one recommended option with a brief reason; - all output added as an English Jira comment. Constraints: - do not send the email; - do not contact recipients; - do not mark the issue Done; - if the event notes do not establish the audience or call to action, ask for clarification instead of guessing. Output and handoff: - add the drafts as a Jira comment; - move the issue to Review only after adding the drafts; - the Developer responsible for this item reviews the drafts, selects the final version, and decides whether the issue moves to Done.
The second story is longer, but not because verbosity is the goal. That is what a Jira story for an AI agent has to do: each section removes a decision the agent would otherwise have to invent.
We should be clear about what this comparison is and is not. The failed story is a real one, shown here with an invented nickname. The rewrite is a reconstruction built from what was missing, and we did not re-run the task against it to prove the output would have been correct. What we can say is narrower and still useful: every gap Sophie filled incorrectly is a gap the second story closes.
The Sprint example: structure changed the outcome
We saw the same principle in our Sprint workflow.
During the early Sprints, the request to create the next Sprint’s tasks was too incomplete. It did not provide a sufficiently explicit task list, Sprint target, or assignment structure. Sophie stopped and asked for clarification.
The later specification supplied a structured table containing:
Task name | Story points | Assignee
It also made the target Sprint and the intended Jira operation clear. From that point, Sophie could convert the agreed human plan into Jira issues and report the created keys, estimates, and assignees. Sophie created none of the Sprint issues in Sprints 146 to 149. From Sprint 150 onward, Jira recorded Sophie as the creator of most Sprint issues: 14 of 15 in Sprint 150, 15 of 16 in Sprint 151, 21 of 23 in Sprint 152, and 24 of 24 in Sprint 153 while that Sprint was still active. Part 7 covers those counts and their limits in detail.
We do not interpret that as proof that Sophie independently planned the Sprints. The Developers made the planning decisions during Sprint Planning, including who would take each task. The agent performed the structured conversion into Jira records.
The improvement came from better input, not from asking the model to guess more confidently.
There is a detail in that example worth pausing on, because it complicates the advice in this post. The specification that worked was a three-column table. It had no audience section, no purpose statement, and no success criteria. It worked anyway.
What a detailed Jira story for an AI agent costs, and when to skip it
Writing eight sections for every story is real work. On a one-week Sprint with twenty issues, that cost lands on whoever writes the stories, every week. A practice that expensive will be abandoned quietly if it is applied uniformly.
The Sprint table is the evidence that it should not be. Mechanical conversion of an already-agreed decision needed structure, not context. Nobody had to explain the purpose of creating a Jira issue.
What separates the two cases is not size or effort. It is how much the correct output depends on knowledge that lives outside the story, and how much damage a plausible wrong answer would do.
Structure is enough when the task is a mechanical transformation of something a human already decided, every value needed is present in the request, and a wrong result is obvious immediately. Creating issues from an agreed list. Reformatting data. Applying a stated change to a named field. Give it a clear format and the required fields, and stop there.
Full context is needed when the correct output depends on business context, audience, or internal vocabulary; when the agent would have to interpret rather than convert; or when a plausible wrong answer is expensive to catch. Anything customer-facing. Anything where “sounds right” and “is right” can diverge. The event email task was in this category and was written as though it were in the first one. That, precisely, was the error.
Do not assign it at all when the story cannot answer what success looks like, when it depends on a judgment the team has not made yet, or when a wrong result would reach a customer without review. A story that cannot be specified is not a hard story. It is an unmade decision, and no amount of story structure substitutes for making it.
The useful question before writing a story is not “how detailed should this be.” It is: what would the agent have to decide on its own, and can it afford to get that wrong?
Internal language must be explicit
Short internal labels are efficient for people who already know them. They are risky as standalone instructions for an agent.
In our case, the team’s shorthand for an event differed by a single letter from the Jira project key. With invented labels, that looks like this: EVT is the team’s shorthand for the Spring Clean event, while EVP is the Jira project key. Identifiers like these are easy to confuse if the story assumes everyone shares the same context.
Instead of:
Update the EVP/EVT content task.
write:
EVP is the Jira project. EVT refers to the Spring Clean event. Update the post-event attendee content in this issue, not the Jira project configuration.
Define internal terms the first time they appear. If the term is important enough to affect the action, it is important enough to explain.
What should happen when context is missing?
The correct agent behavior is not to fill every gap with a plausible assumption.
A useful decision rule is:
If the missing information changes the audience, purpose, scope,
factual content, permissions, or definition of success:
stop
explain what is missing
ask a focused question
do not claim completion
If the missing information is low-risk and does not change the deliverable, the agent may use a clearly marked placeholder or a conservative default.
Examples:
- Missing sender name in a draft email: use [Sender Name] and continue if the rest is clear.
- Missing event identity: stop and ask.
- Missing URL in a template: use [Link], do not invent one.
- Missing target Sprint for issue creation: stop and ask.
- Missing story-point estimate when estimates are optional: create only if the human specification permits it, and flag the missing value.
- Ambiguous Epic with several plausible matches: stop and ask for the Epic key.
- Unclear request to send an external email: draft only and wait for explicit authorization.
The distinction is not whether the agent can produce an answer. It is whether the agent can produce the intended answer without inventing a consequential fact.
This rule only works if stopping is treated as a success. If an agent that asks a question is seen as an agent that failed, the team will write prompts that discourage stopping, and the guessing comes back.
A reusable Jira story for an AI agent
This is the minimum template we would give a team writing its first Jira story for an AI agent. For the mechanical work described above, the first three fields and the output section are usually enough.
Summary: [Verb + deliverable + subject] Objective: [What must be produced or changed?] Context: [Project, event, customer, incident, decision, or background] [Define internal terms and acronyms] Audience: [Who will use, read, receive, or approve the result?] Purpose: [Why is this work needed?] Sources: [Links, attachments, approved references, or "none"] [State which source is authoritative] Success criteria: - [Required content or behavior] - [Required format] - [Validation or acceptance condition] Constraints: - [Language] - [Things the agent must not do] - [Permission or safety boundary] Output and handoff: [Where should the result be posted?] [Which Developer is responsible for reviewing or approving it?] [Which status should the issue have afterward?] If blocked: [Ask focused questions and do not guess]
The template is not bureaucracy for its own sake. It is a way to move decisions from hidden team memory into an auditable work item.
We have not run this exact template through a full Sprint cycle. It is assembled from what was missing in the stories that failed and what was present in the ones that worked, which makes it a well-grounded starting point rather than a validated standard. Adapt it to your workflow and drop the sections your work does not need.
Before assigning a story, four questions catch most of what goes wrong:
- Could a teammate who joined today execute this without asking for background that exists only in someone’s memory?
- Can I describe what a correct result contains?
- Is it clear what the agent must not do, and where the output goes?
- If a fact is missing, do I know whether the agent should use a placeholder or stop?
If the answer to more than one is no, the story is a planning note, not an executable task.
What a Jira story for an AI agent does not fix
Better stories narrow the agent’s implicit authority. They do not replace the rest of the safety model.
Story text is untrusted input. A description or comment can contain instructions that conflict with the operating contract, whether by accident or not. The agent should treat that text as task data, not as permission to override its boundaries. Explicit structure helps, but it does not remove the need for tool restrictions, least-privilege credentials, read-back verification after every write, and human review for consequential work. Those are covered in Part 6.
The safest story is not the one with the longest instruction. It is the one that makes the important decisions visible and leaves the uncertain ones with a person.
Our conclusion
The quality of an AI-agent workflow is constrained by more than the model and the tools. It is constrained by the quality of the work items entering the system.
Our event email failure showed what happens when a title is treated as a specification. Our Sprint 150 experience showed what becomes possible when a human decision is converted into an explicit, structured task list.
The difference was not that one prompt was magical. The difference was that one story required the agent to guess and the other gave it enough information to execute.
That is the habit we would recommend to any team introducing an AI agent:
Write every Jira story for an AI agent so the agent knows what to do, why it matters, what success means, what it must not do, and when it must stop.
A good story does not eliminate human judgment. It puts human judgment in the right place: before execution, where the team can define the work, and after execution, where a person can review what actually happened.
If you want to try this, do not roll out a template. Take one story your agent got wrong recently, and write down every decision it had to make that the story did not answer. That list is the specification you were missing, and it is usually shorter than you expect.
Most teams find the same thing we did: the gap is not that the model is not capable enough. It is that the work was never written down clearly enough for anyone, agent or human, to execute.
Need more help putting an AI agent to work on your team?
Book a quick consultation and ask Jeff directly.