Jira
Use Autohand with Jira through Atlassian's MCP server, or by piping issue data from the Jira REST API.
What is the Autohand Jira integration?
Autohand has no built-in Jira command or jira config section. You connect it to Jira in one of two ways: register Atlassian’s Rovo MCP server with autohand mcp add so Autohand can read and update issues itself, or fetch issues with the Jira REST API and pipe them into autohand -p.
| Status | Works through MCP or piped data. No native integration. |
| Requires | A Jira Cloud site for the Atlassian MCP server, or any Jira (Cloud or Data Center) plus an API token for the REST API. |
| Configure with | autohand mcp add atlassian -- npx -y mcp-remote https://mcp.atlassian.com/v2/mcp, then sign in through the browser. |
| Best for | Working an issue from description to patch, drafting issues from code, and commenting on or updating issues. |
Overview
There is no autohand jira command. You build Jira workflows from general CLI pieces:
- An MCP server, so Autohand can search, read, create and comment on issues during a session
- Piped input, so an issue fetched with
curlor the Jira CLI becomes context for a headless run --worktree, so work on each issue happens on its own branch--patchand--output-schema, so results come back as a reviewable patch or structured JSON
Connect the Atlassian MCP server
Atlassian runs a remote MCP server (Rovo MCP Server) for Jira, Confluence and Compass on Atlassian Cloud. Its endpoint is https://mcp.atlassian.com/v2/mcp. Check Atlassian’s getting started guide for the current URL before you set it up.
Sign in with OAuth
Autohand’s own HTTP transport does not run an OAuth sign-in, so use the mcp-remote bridge (needs Node.js 18 or later). It opens a browser window for the Atlassian consent screen the first time Autohand connects:
autohand mcp add atlassian -- npx -y mcp-remote https://mcp.atlassian.com/v2/mcp
# Check that the server is configured
autohand mcp list
Start a session and approve access in the browser. Autohand waits up to four minutes for the sign-in to finish. The server’s tools then show up as mcp__atlassian__<tool>, and every action runs with your Jira permissions.
Add --scope project to save the server in .autohand/config.json in the repository instead of your user config.
Use an API token instead
If your Atlassian organization admin has turned on API token authentication for the MCP server, you can skip the browser and send a token in a header. Register the server over HTTP, then add a headers block to its entry in ~/.autohand/config.json:
autohand mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp
{
"mcp": {
"servers": [
{
"name": "atlassian",
"transport": "http",
"url": "https://mcp.atlassian.com/v2/mcp",
"headers": {
"Authorization": "Basic <base64 of email:api_token>"
},
"autoConnect": true
}
]
}
}
Create a personal token at Atlassian API tokens and base64-encode your-email@company.com:your-api-token. For a service account, use "Bearer <api-key>" instead. Autohand sends the header value exactly as written and does not expand environment variables in it, so keep this file private. Do not put the token in a project config you commit.
Pipe issues from the Jira REST API
Without an MCP server, fetch the issue yourself and pipe it in. Piped input is added to the prompt as context. The JIRA_* variables below are read by curl, not by Autohand:
curl -s -u "$JIRA_EMAIL:$JIRA_API_TOKEN" \
"https://yourcompany.atlassian.net/rest/api/3/issue/PROJ-123?fields=summary,description,comment" \
| autohand -p "Read this Jira issue and list the files in this repository that need to change, with a short plan." \
--restricted
--restricted denies dangerous operations, which suits a read-only planning run. The Jira CLI or any other tool that prints issue text works the same way.
Common workflows
Work on an issue in its own branch
--worktree creates a git worktree and a branch for the session. The name is lowercased, so PROJ-123 gives a branch called proj-123:
# Interactive: ask Autohand to read PROJ-123 through the MCP server and implement it
autohand --worktree PROJ-123
# Headless: pipe the issue in and get a patch to review instead of changed files
curl -s -u "$JIRA_EMAIL:$JIRA_API_TOKEN" \
"https://yourcompany.atlassian.net/rest/api/3/issue/PROJ-123?fields=summary,description" \
| autohand -p "Implement this Jira issue and add tests." \
--patch --output proj-123.patch
Draft issues from TODO comments
Collect TODOs with grep and have Autohand group them into issue drafts. --output-schema makes the answer a JSON document, and the command exits with status 1 if the answer does not match the schema:
grep -rn "TODO\|FIXME" src/ \
| autohand --ephemeral -p "Group these TODOs into Jira issue drafts with a summary, description and file references." \
--restricted --output-schema issue-drafts.schema.json --json local \
| jq -r .content > issue-drafts.json
Review issue-drafts.json, then create the issues with the Jira API, or ask Autohand to create them in project PROJ through the Atlassian MCP server.
Comment on or update an issue
With the MCP server connected, ask in plain language, for example “Add a comment to PROJ-123 summarizing the changes on this branch” or “Move PROJ-123 to In Review”. Which actions are available depends on the tools the server exposes and your Jira workflow.
Estimates and sprint planning
Autohand has no estimation or sprint feature. You can still ask it to read a set of issues through the MCP server, look at the code each one touches, and suggest relative sizes or dependencies. Treat the result as input for your team, not as a plan.
Smart commits
Smart Commits are a Jira feature. Jira reads them from commit messages through your Git host integration (GitHub, GitLab or Bitbucket). Autohand does not process them, but any commit Autohand writes for you can include them:
# Transition and log time
git commit -m "PROJ-123 #done #time 2h Fixed login bug"
# Add comment
git commit -m "PROJ-123 #comment Code review complete"
# Multiple commands
git commit -m "PROJ-123 PROJ-124 #resolve #time 1h30m Both issues fixed"
To have Autohand include the issue key, say so in your prompt or add a line such as “Start commit messages with the Jira issue key” to the repository’s AGENTS.md (autohand init creates one).
Smart commit commands
| Command | Description | Example |
|---|---|---|
#comment |
Add a comment | #comment Fixed in release 2.0 |
#time |
Log work time | #time 2h 30m |
#<transition> |
Transition issue | #done, #in-progress |
Jira Data Center
Atlassian’s MCP server is for Atlassian Cloud. For a self-hosted Jira Data Center, use the REST API with a personal access token (Data Center 8.14 and later):
- Go to Profile > Personal Access Tokens
- Click Create token
- Set an expiry date and click Create
- Copy the generated token
curl -s -H "Authorization: Bearer $JIRA_PAT" \
"https://jira.yourcompany.com/rest/api/2/issue/PROJ-123?fields=summary,description" \
| autohand -p "Read this Jira issue and propose an implementation plan." --restricted
If you use a community Jira MCP server that supports Data Center, register it as a local server and put its credentials in the server’s env block in your config:
autohand mcp add jira -- npx -y <jira-mcp-package>
Running Autohand from Jira events
Autohand has no webhook endpoint and does not listen for Jira events. To start a run when something happens in Jira, have Jira call your CI system and run Autohand there:
- In Jira, create an Automation rule with a trigger such as Issue created or Issue transitioned
- Add a Send web request action that starts a CI job (for example a GitHub Actions
repository_dispatchevent) and passes the issue key - In the job, fetch the issue and run
autohand --bare -pwith--patchor--restricted - Post the result back to the issue or open a pull request for review
With --bare, Autohand reads its credentials from AUTOHAND_PROVIDER, AUTOHAND_API_KEY and AUTOHAND_AI_API_KEY. See Headless mode.
Troubleshooting
MCP server does not connect
- Run
autohand mcp listto check that theatlassianentry exists and is set to auto-connect - For the
mcp-remotebridge, make sure Node.js 18 or later is installed and finish the browser sign-in within four minutes - Confirm the endpoint URL against Atlassian’s current documentation
Authentication errors
- Verify your API token has not expired
- Check that the email matches your Atlassian account and that you base64-encoded
email:token, not the token alone - Token authentication for the MCP server only works if your organization admin has enabled it
- Ensure REST API URLs include the protocol (
https://)
Permission errors
- Verify you have access to the target project
- Check that your role allows issue creation and editing
- For Data Center, ensure your account is not restricted
Smart commits not working
- Ensure your Git host is connected to Jira
- Verify issue keys are in the correct format (PROJ-123)
- Check that Smart Commits are enabled for your project
How do I configure the Autohand Jira integration?
Register Atlassian’s MCP server with autohand mcp add atlassian -- npx -y mcp-remote https://mcp.atlassian.com/v2/mcp and sign in through the browser. There is no jira section in the Autohand config.
What does the Autohand Jira integration require?
A Jira Cloud site for the Atlassian MCP server, or an API token or personal access token to fetch issues from the Jira REST API and pipe them into Autohand.
What limitations should I know about?
Autohand has no Jira commands and does not react to Jira events by itself. What it can do in Jira depends on the MCP server’s tools and your Jira permissions. Atlassian’s MCP server covers Cloud only.