jira-issue-to-pr
This skill should be used when the user asks to "set up a Jira automation to create pull requests", "poll Jira for create-pr issues", "automatically create…
by OpenHands★ 190 GitHub stars
Install jira-issue-to-pr in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Jira → Pull Request Automation (GitHub, GitLab, Bitbucket)
Deploys a cron automation that polls a Jira Cloud instance for open issues carrying a
configurable label and, for each new issue, starts an OpenHands agent conversation that
clones the repository specified in the ticket body on the configured git provider (GitHub
by default, GitLab or Bitbucket with git_provider), creates a branch, implements or
placeholders the requested change, and opens a pull request (a merge request on GitLab).
Once the conversation
starts, it also posts a comment on the Jira ticket: "I'm on it: <conversation URL>".
How It Works
- Poll - every N minutes, search the Jira Cloud instance for open issues with the
configured label: through the user's connected Atlassian Rovo MCP server on OpenHands
Cloud and Enterprise, or with
POST /rest/api/3/search/jqland an API token. - Deduplicate - on the very first run the script records a
first_run_atbaseline timestamp in the KV store; any issue whoseupdatedtimestamp predates that baseline is skipped (no backfill blast on first deploy). Usingupdatedrather thancreatedmeans an old issue that has its label added after the automation is deployed will still be picked up. Subsequent runs filter by bothfirst_run_atand a KV-backed set of already-processed issue keys. Amax_new_per_runcap (default 5) limits conversations started per cron firing as additional defense-in-depth. - Dispatch - for each new issue, start an independent agent conversation with a
PR-creation prompt:
POST /api/conversationson the agent server when running locally, orPOST /api/v1/app-conversationson OpenHands Cloud. The prompt instructs the agent to extract the target repository (owner/repoon GitHub;group/projector a URL on GitLab;workspace/repoon Bitbucket) from the ticket body. - Comment - immediately after the conversation is created, post a Jira comment on the
issue:
I'm on it: <conversation URL>. - Persist - record the processed issue key so re-runs never duplicate work.
The polling run is lightweight (stdlib only, no SDK install); LLM costs are incurred only when new issues are actually found.
Prerequisites
Before deploying, ensure the following are in place:
| Requirement | Details |
|---|---|
| Jira access | OpenHands Cloud and Enterprise: the user's connected Atlassian Rovo MCP server, with no API token. Local, or without that connection: a Jira API token stored as an OpenHands secret (see Jira API token setup) |
| Git provider access | OpenHands Cloud and Enterprise: the user's connected GitHub, GitLab or Bitbucket integration, whichever git_provider names. A connected MCP server also works - GitHub's (with the saved access token), GitLab's, or Atlassian Rovo for Bitbucket - with a private repository read through the tools rather than cloned. Local: a token for that provider stored as an OpenHands secret (GITHUB_TOKEN with repo + workflow, GITLAB_TOKEN with api, BITBUCKET_TOKEN) so the spawned conversation can push branches and open the request |
| KV store (OpenHands Cloud only) | The automation service must have its KV store enabled (kvStore in GET /api/automation/v1/capabilities); each cloud run starts in a fresh sandbox, so processed issues are remembered there |
| Jira label | The label to watch for (default: create-pr) must exist in the Jira project |
| Target repository | Must exist on the configured provider; the connected integration or token must have write access |
Deploying the Automation
Determine the API host and auth
Set OPENHANDS_HOST and AUTH_HEADER for the curl commands below:
- OpenHands Cloud - a
<HOST>value is present in the system prompt:OPENHANDS_HOST="<HOST value>" AUTH_HEADER="Authorization: Bearer $OPENHANDS_API_KEY" - Local Agent Canvas - no
<HOST>value:OPENHANDS_HOST="http://localhost:8000" AUTH_HEADER="X-Session-API-Key: $OPENHANDS_AUTOMATION_API_KEY"
Step 1 - Collect parameters
First decide how the poller reaches Jira:
- Connected Atlassian Rovo MCP server - on OpenHands Cloud and Enterprise, when the user has connected it. OpenHands calls Jira for the poller through that connection, so do not ask for a Jira email or an API token and do not create a secret.
- Jira API token - on a local Agent Canvas, or when the Rovo server is not connected.
Then pick git_provider from the automation the user asked for: github for Jira issue to
GitHub PR (the default, so it can be left out), gitlab for Jira issue to GitLab MR,
bitbucket for Jira issue to Bitbucket PR. It changes only what the conversation is told;
the conversation pushes with the user's connected integration for that provider, or delivers
through the connected MCP server's tools when it has no token.
Then gather the parameters for that route, plus
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- .claude-plugin
- .codex-plugin
- .plugin/plugin.json
- README.md
- references/setup.md
- scripts/main.py
- scripts/setup_webhook.py
FAQ
What does the jira-issue-to-pr skill do?
This skill should be used when the user asks to "set up a Jira automation to create pull requests", "poll Jira for create-pr issues", "automatically create GitHub PRs from Jira tickets", "deploy a Jira issue-to-PR automation", "create a Jira to GitHub PR workflow", "set up the Jira issue to GitLab MR automation", "set up the Jira issue to Bitbucket PR automation", "open GitLab merge requests from Jira tickets", "open Bitbucket pull requests from Jira tickets", or mentions automating pull request or merge request creation from a Jira label. Deploys a cron-based OpenHands automation that watches a Jira Cloud project for issues labeled with a configurable label (default: "create-pr") and spawns an agent conversation that opens a pull request on GitHub (the default), a merge request on GitLab, or a pull request on Bitbucket for each new issue found, chosen with git_provider. The target repository is read from the body of the Jira ticket - no repo parameter is required at deploy time.
How do I install the jira-issue-to-pr skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the jira-issue-to-pr skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…