Bridging the Impossible: Jira On-Premises β Power Automate & Copilot Studio The complete, free, production-ready solution nobody else has built.
By Kerolos Β· π Full Blog Post & Walkthrough Β· π Power of Automation
Microsoft's built-in Jira connector only works with Jira Cloud. Thousands of enterprises running Jira Server or Jira Data Center on-premises are stuck β the native connector fails with 401 Unauthorized because it expects Jira Cloud's auth format.
Existing workarounds are either:
- π» Raw HTTP actions β tedious, no reusable connector, no IntelliSense
- πΈ Paid middleware (CData, Exalate) β expensive, license-bound
- β Unanswered forum threads β the community has been asking for years
Nobody has published a complete, free, production-ready custom connector with on-prem gateway integration, flow wrappers, and an AI agent.
Until now. π
| Component | What It Does |
|---|---|
| π§© 45-Action Custom Connector | Full OpenAPI 2.0 spec covering Issues, Comments, Transitions, Worklogs, Projects, Users, Agile/Sprints, Metadata |
| π§ͺ Jira Data Center Simulator | Node.js mock server mimicking real Jira REST API v2 β 3 projects, 12 seeded issues, Kanban dashboard |
| π On-Premises Gateway Integration | Connects Power Platform cloud to your on-prem Jira with zero VPN required |
| π 5 Flow Wrappers | Get Issue, Search Issues, Create Issue, Add Comment, Transition Issue β the secret sauce for Copilot Studio |
| π€ Copilot Studio AI Agent | Natural-language Teams chat β JQL β real Jira tickets |
| π SharePoint Integration | SharePoint list item created β Jira ticket auto-created |
| π Complete Documentation | Step-by-step setup, screenshots, troubleshooting, production switch guide |
Teams User ββ Copilot Studio ββ Power Automate ββ Custom Connector ββ Gateway ββ Jira DC
(natural (AI Agent) (Flow Wrapper) (45 Actions) (On-Prem) (REST API)
language)
Copilot Studio throws "Setting 'gateway' cannot be null" when calling custom connectors with on-prem gateway directly.
The fix: Wrap each action in a Power Automate flow, then add the FLOW to the agent β not the connector.
β οΈ This workaround is not documented anywhere on Microsoft Learn. Discovered during development.
| Method | Status | Notes |
|---|---|---|
| Basic Auth + PAT (Personal Access Token) | β Recommended | Works everywhere. Username + PAT as password. |
| Basic Auth + Password | Legacy. Atlassian discourages. | |
| Bearer Token | β Blocked | Needs API Key auth β not available in all environments. |
| OAuth 1.0a | β Incompatible | Jira DC uses 1.0a. Power Automate only supports 2.0. |
SSO / M365 login does not affect the connector. SSO is for browser login. The REST API accepts Basic auth + PAT separately β two different doors into Jira. Enter the PAT once when creating the connection. No second login, no popups, forever.
- Jira Server or Data Center 8.14+ (PAT support required)
- Power Automate license (Premium or Per-User with attended RPA)
- Windows machine with network line-of-sight to Jira (for the gateway)
- Node.js 18+ (only if using the simulator)
cd simulator
npm install
npm start
# Server prints your LAN IP β use THAT in the connector, never localhostOpen http://<your-ip>:8080 β Real Atlassian-style dashboard, 3 projects, 12 seeded issues.
- Download: aka.ms/on-premises-data-gateway-installer
- Install on the machine running Jira (or one that can reach it)
- Sign in with your Power Platform account
- Verify Online in Power Automate β Data β Gateways
- Power Automate β Data β Custom Connectors β + New β Import an OpenAPI file
- Upload
connector/apiDefinition.swagger.json - General tab:
- Host:
<your-jira-ip-or-hostname>:8080(simulator) orjira.yourcompany.com(prod) - Scheme:
HTTP(simulator) orHTTPS(prod) - β Connect via on-premises data gateway
- Host:
- Security tab:
Basic authentication - Create connection β Username + PAT β Select your gateway β Done.
Import the 5 flow solutions from flows/ β each is a .zip ready for Power Automate.
- Create new agent in Copilot Studio
- Topics β Actions β Add action β add all 5 flows (not the connector directly!)
- Paste system prompt from
agent/system-prompt.md - Turn on Generative orchestration
- Publish to Teams
| Setting | Simulator | Real Jira |
|---|---|---|
| Host | 10.0.0.4:8080 |
jira.yourcompany.com |
| Scheme | HTTP | HTTPS |
| Password | test |
Your real Jira PAT |
The connector, flows, agent, and actions all stay exactly the same β only host/scheme/PAT change.
Click to expand full action list
| Category | Actions |
|---|---|
| Issues | Search Issues, Create Issue, Get Issue, Update Issue, Delete Issue, Assign Issue, Bulk Create Issues |
| Comments | Get Comments, Add Comment, Update Comment, Delete Comment |
| Transitions | Get Available Transitions, Transition Issue |
| Worklogs | Get Worklogs, Add Worklog |
| Projects | List Projects, Get Project, Get Components, Get Versions, Get Statuses |
| Users | Current User, Get User, Search Users, Get Assignable Users |
| Agile | Get Boards, Get Sprints, Get Sprint Issues, Get Backlog, Get Epic Issues |
| Metadata | Get Priorities, Get Statuses, Get Issue Types, Get Fields, Get Filters, Get Dashboards |
JiraBridge-OnPrem/
βββ connector/ # The custom connector
β βββ apiDefinition.swagger.json # OpenAPI 2.0 spec (45 actions)
β βββ apiProperties.json # Auth config (Basic + PAT)
β βββ settings.json # paconn CLI deployment
β βββ icon.png # Connector icon
βββ simulator/ # Jira DC mock server
β βββ server.js # Express app, REST API v2
β βββ data/seed.json # 3 projects, 12 issues
β βββ public/ # Atlassian-style dashboard
β βββ package.json
βββ flows/ # 5 Power Automate flow wrappers
β βββ Jira-GetIssue.zip
β βββ Jira-SearchIssues.zip
β βββ Jira-CreateIssue.zip
β βββ Jira-AddComment.zip
β βββ Jira-TransitionIssue.zip
βββ agent/ # Copilot Studio AI agent
β βββ system-prompt.md # Agent instructions
β βββ topics/ # Example topics
β βββ setup-guide.md
βββ examples/ # Real-world scenarios
β βββ sharepoint-to-jira.md # SPO list β Jira ticket
β βββ email-to-jira.md # Outlook β Jira
β βββ sample-jql-queries.md
βββ docs/ # Deep-dive guides
β βββ architecture.md
β βββ authentication.md
β βββ gateway-setup.md
β βββ copilot-gateway-bug-fix.md # β The undocumented fix
β βββ going-to-production.md
β βββ troubleshooting.md
βββ .github/
β βββ ISSUE_TEMPLATE/
β βββ workflows/ # Swagger validation CI
βββ CHANGELOG.md
βββ CONTRIBUTING.md
βββ LICENSE
βββ README.md
β
SharePoint list item created β Jira ticket SEC-57 auto-created in 0 seconds
β
Power Automate manual trigger β Jira ticket INFRA-111 created with Bug/High/Assigned
β
Copilot Studio agent in Teams: "Show all bugs in INFRA" β returns INFRA-102, INFRA-100 with status and priority
β
Natural language create: "Create a high priority bug in SEC for suspicious login" β SEC-58 created
See docs/screenshots/ for the full proof gallery.
| Symptom | Fix |
|---|---|
401 Unauthorized from Jira |
PAT expired or wrong username. Regenerate PAT, use email/username (not display name). |
"Setting 'gateway' cannot be null" in Copilot Studio |
Expected! Use flow wrappers instead of the connector directly. See docs/copilot-gateway-bug-fix.md. |
| Gateway shows Offline | Restart the gateway service: services.msc β On-premises data gateway service β Restart. |
Connector can reach simulator at localhost but not LAN IP |
Simulator must bind 0.0.0.0, not 127.0.0.1. Check server.js. |
404 on /rest/api/2/* endpoints against real Jira |
Your Jira is pre-8.14 or REST is disabled. Upgrade or enable. |
Full troubleshooting guide: docs/troubleshooting.md
- Add Confluence on-prem companion connector
- Bitbucket Server actions
- Bidirectional sync template (Jira β SharePoint status updates)
- Terraform / Bicep for gateway VM provisioning
- MCP server wrapper (natural language from Claude Desktop / any LLM)
PRs welcome! See CONTRIBUTING.md for the flow. Especially valuable:
- Additional flow wrappers (worklogs, sprint management, bulk ops)
- Real-world Copilot Studio topic examples
- Translations of the README
- Fixes for Jira Server versions < 8.14
MIT Β© 2026 Kerolos β Power of Automation
Use it, fork it, ship it. Attribution appreciated but not required.
Built as part of the Power of Automation 2026 series. Related repos:
- Purview MCP Server β 106 tools for Copilot audit pipelines
- SharePoint MCP Server β 150+ tools for SharePoint automation
- Cloud Infra MCP Suite β SharePoint, Azure, AWS, Cisco
Star the repo Β· Share the blog post Β· Tag me on LinkedIn
Built for the enterprises Microsoft forgot. π‘οΈ