Factories > Connect work intake
Turning a Jira issue into a pull request
Route delegated work from one Jira Cloud project to a factory and receive pull request links on the work items, with progress in their agent sessions.
Route assignments and mentions in one Jira project to a factory in Warp Factories. The foreman responds in the agent session and posts the pull request link on the work item. A person reviews and merges the changes.
Use an existing factory with a foreman and an implementation agent, or adapt the 01-single-repo-quickstart example. The steps below replace its issue-label intake with Jira delegation.
This guide applies to Jira Cloud. Jira Server and Data Center are not supported.
Prerequisites
Section titled “Prerequisites”- A factory with access to the target repository and permission to push branches and open pull requests.
- Warp for Jira installed on your Jira Cloud site and connected to your Warp workspace by a Jira site admin.
- Jira connected to the factory. A factory connects to Jira or Linear, not both.
- An Atlassian account linked to Warp for each requester.
- Available usage in your team’s balance for factory runs. Add usage if needed. See access and billing requirements.
- Permission to edit the factory definition.
Configure the agent-session trigger
Section titled “Configure the agent-session trigger”Assigning or mentioning Warp on a Jira work item creates an agent session. Use the jira / agent_session_created trigger with project_keys to limit which projects’ sessions this automation handles.
Connecting the Jira site to your workspace grants integration access; automation filters control routing. For a GitHub-backed factory, declare type: jira in factory.yaml’s integrations list. Dashboard project selection is not required or editable for that setup.
-
In the factory dashboard, open Automations and find the existing Jira automation. Selecting Jira projects during setup creates one. Reuse it to avoid overlapping handlers.
- Warp-managed factory - Edit the automation in the dashboard.
- GitHub-backed factory - Edit its definition file. The dashboard view is read-only.
-
Set the trigger’s project filter to your Jira project. In the definition file, use the project key in
project_keys. ReplaceYOUR_PROJECT_KEYbelow with the prefix of your issue identifiers, such asENGinENG-123.automations/jira-agent-sessions/automation.md ---triggers:- provider: jiraevent: agent_session_createdfilter:project_keys: [YOUR_PROJECT_KEY]---Someone assigned or mentioned Warp on a Jira work item in a project thisfactory serves, which started this agent session. Read the work item andthe instruction that started the session, restate the deliverable, anddelegate to the implementation agent with the acceptance criteria. Ask formissing requirements before implementation. Require tests and a verificationsummary on the pull request. Post progress and the final pull request linkin the session, and comment the link and verification summary on the workitem so the result stays visible after the session ends. Leave the workitem's status and assignee unchanged. A person reviews and merges;do not merge.This example omits
agent, so requests go to the foreman. Its project filter matches every agent session in that project.For opt-in intake, add
labels: [factory-ready]and apply the label before assigning or mentioning Warp. The filter reads the work item’s current labels when the session starts. Jira label names are case-sensitive. See Jira events and filters for all options.Avoid overlapping project filters across factories. If two factories match the same project’s session, both handle that work item.
-
Apply the definition change.
- Warp-managed factory - Save the edits in the factory dashboard.
- GitHub-backed factory - Open a pull request, confirm the
warp/factory-configcheck passes, then merge it into the factory’s production branch.
Validation does not confirm Jira connectivity, project access, or account linking. Test those requirements with a real agent session.
Delegate from Jira
Section titled “Delegate from Jira”- Write the Jira work item with the requested behavior, verifiable acceptance criteria, and the target repository if the factory has more than one.
- Assign the work item to Warp, or mention Warp in a comment, and include an instruction. Warp must be available on your Jira site, where it appears among Atlassian’s Rovo agents.
The warp-agent label starts a standalone cloud agent run, not factory work.
For example, prepare ENG-123 with:
- Summary - Return 404 for unknown customer IDs
- Expected behavior -
GET /customers/{id}returns404with{"error": "customer_not_found"}instead of500when the ID does not exist - Verification - A regression test for an unknown customer ID
Then assign it to Warp with this instruction:
Implement this against the acceptance criteria and open a pull request.Replies in the agent session continue the same run, even after the agent finishes a turn, so answer the foreman’s questions there instead of starting another session.
What comes back
Section titled “What comes back”Jira shows session progress and results. The prompt also requires a work-item comment so the pull request link remains visible outside the session.
Check for these results:
- Run - An entry under the automation on the factory’s Runs page, while the session moves from submitted to working
- Pull request - A pull request linked to the work item, with tests and a verification summary
- Handoff - The foreman posts the pull request link and verification summary both on the work item and in the session
The instructions leave the work item’s status and assignee unchanged. A person reviews and merges the pull request. To have the foreman transition the work item, such as to In Review, add that instruction to the prompt. Jira permissions and valid project transitions still apply.
Unmatched and vague requests
Section titled “Unmatched and vague requests”A session outside project_keys starts no run through this automation. Other matching automations can still handle it. Check the factory’s Runs page to distinguish an unmatched event from a failed run.
The instructions above ask for missing requirements before implementation. Reply in the session to continue the same run.
Troubleshooting
Section titled “Troubleshooting”- Warp is unavailable to assign or mention - Warp for Jira must be installed on the Jira Cloud site and connected to a workspace. Ask a Jira site admin to install it and click Connect to Warp on the app’s Configure page. See Jira troubleshooting.
- Jira asks you to connect an account - Site installation does not link individual Atlassian accounts. Link your account to Warp from Jira personal settings, then assign or mention Warp again.
- Assigning Warp starts no run - The factory needs the Jira integration and a matching automation. Confirm Jira is connected, the
agent_session_createdautomation is enabled, andproject_keysmatches the work item’s project. See an event that should start work doesn’t. - The session shows no result - The run may still be working, waiting for input, or failed. Open it under the automation on the factory’s Runs page and check its status.
Set it up with a prompt
Section titled “Set it up with a prompt”- Replace
OWNER/REPOwith your repository andYOUR_PROJECT_KEYwith your Jira project key in the following prompt. - Paste the completed prompt into a conversation with your factory’s foreman (New Chat in the factory dashboard) or a coding agent connected through Factory MCP.
Read https://docs.warp.dev/factories/guides/jira-to-pull-request.md.Set up Jira intake for my factory: one jira/agent_session_createdautomation filtered to project_keys [YOUR_PROJECT_KEY], routed to the foreman, for myrepository OWNER/REPO, with a prompt that comments the pull request link onthe work item. If the factory already has a Jira agent-session automation,update it instead of adding a second one. Validate the definition beforeapplying it, then list what I still have to do by hand: install Warp for Jiraon my Jira Cloud site and connect it to my workspace, declare Jira in thefactory definition, and link each requester's Atlassian account to Warp.Configure scope confirmation, clarification, delegation to the implementationagent, tests, and verification results in the session and work-item comment.Require human review; never merge or change work-item status or assignee.Do not change anything in Jira during setup without asking me first.Include tests for a matching project, an unmatched project, and a sessionreply. Check that no other factory or automation matches the test session.Guide navigation
Section titled “Guide navigation”- Previous stage: Testing and tuning your factory
- Next stage: Factory use cases - Extend the workflow as needed
- All stages: Factory guides
Related pages
Section titled “Related pages”- Connect Jira to your factory - Permissions, what happens during a run, and which account the Jira tools use
- Factory automations - How matching works and how to edit filters