Bridging the Impossible: Connecting Jira On-Prem to Power Automate & Copilot Studio — The Solution Nobody Built Until Now"

Connect Jira On-Premises to Power Automate & Copilot Studio — The Complete Solution
First-of-Its-Kind Solution

Connect Jira On-Premises to Power Automate & Copilot Studio

The complete enterprise solution nobody else has built — 45-action Custom Connector + On-Premises Gateway + AI Agent that talks to your Jira Data Center in natural language

By Kerolos | Power of Automation Blog | GitHub | April 2026

45
API Actions
5
Flow Wrappers
0
Others Who Built This
1
AI Agent
The Challenge

A Problem Thousands Face — Nobody Solved

Microsoft's built-in Jira connector only works with Jira Cloud. Thousands of enterprises running Jira Server or Data Center on-premises are stuck — the native connector fails with 401 errors because it expects Jira Cloud's auth format. The community forums are full of unanswered questions about this exact problem.

Existing workarounds are either raw HTTP actions (tedious, no reusable connector) or paid middleware like CData ($$$). Nobody has published a complete, free, production-ready custom connector with gateway integration, flow wrappers, and an AI agent.

Until now.

Solution Design

The Architecture

Teams User
Natural language
Copilot Studio
AI Agent
Power Automate
Flow Wrapper
Custom Connector
45 Actions
Gateway
On-Prem
Jira DC
REST API
Key discovery: Copilot Studio gateway bug

Copilot Studio throws "Setting 'gateway' cannot be null" when calling custom connectors with on-prem gateway. The fix: wrap each action in a Power Automate flow, then add the FLOW to the agent. This workaround isn't documented anywhere — I discovered it during development.

Deep Dive

Authentication — What Actually Works

THE WINNER

Basic Auth + PAT

Username + Personal Access Token as password. Works everywhere.

WORKS

Basic Auth + Password

Legacy method. Works but Atlassian discourages it.

BLOCKED

Bearer Token

Needs API Key auth — not available in all environments.

INCOMPATIBLE

OAuth 1.0a

Jira DC uses 1.0a. Power Automate only supports 2.0.

SSO/M365 login? Doesn't affect the connector. SSO is for browser login. The REST API accepts Basic auth + PAT separately — two different doors into Jira. You enter the PAT once when creating the connection. No second login, no popups, forever.

Step 1

The Jira Simulator — Test Without Risk

I built a complete Jira Data Center simulator that mimics the real REST API v2 — same endpoints, same auth, same response format. 3 projects, 12 seeded issues, real Atlassian-style dashboard with Kanban board.

npm install
npm start
# Server prints your IP address — use THAT in the connector, never localhost
Step 2

On-Premises Data Gateway

  1. Download from aka.ms/on-premises-data-gateway-installer

  2. Install on the machine running Jira (or one that can reach it)

  3. Sign in with your Power Platform account

  4. Verify Online in Power Automate → Data → Gateways

Step 3

The Custom Connector — 45 Actions

Import the OpenAPI spec, set host to your IP, scheme to HTTP, check the gateway box, set Basic auth. That's it.

Custom Connector General Tab — Real Configuration
Custom connector general tab showing host 10.0.0.4:8080, HTTP scheme, gateway checked

The connector configured with the real IP address (10.0.0.4:8080), HTTP scheme, and on-premises gateway checkbox enabled.

CategoryActions Included
IssuesSearch, Create, Get, Update, Delete, Assign, Bulk Create
CommentsGet, Add, Update, Delete
TransitionsGet Available, Transition Issue
WorklogsGet, Add
ProjectsList, Get, Components, Versions, Statuses
UsersCurrent User, Get, Search, Assignable
AgileBoards, Sprints, Sprint Issues, Backlog, Epic Issues
MetadataPriorities, Statuses, Issue Types, Fields, Filters, Dashboards
Live Proof

It Works — Screenshots Don't Lie

Power Automate Flow — Creating an Issue Directly
Power Automate flow creating INFRA issue

Manual trigger → Get all fields → Create issue (INFRA, Bug, High priority, assigned to Kerolos). Completed in 0 seconds.

Jira Dashboard — Issue Created from Power Automate
Jira dashboard showing INFRA-111

INFRA-111 created successfully — Bug, To Do, High priority, Kerolos Admin. The gateway host 10.0.0.4:8080 visible in the banner.

SharePoint Integration

SharePoint List → Jira Issue — Automatic

This is the real power — a SharePoint list triggers a flow that creates Jira issues automatically. When someone adds a row to your SharePoint list, a Jira ticket appears instantly.

Power Automate Flow — SharePoint Trigger → Jira Create
SharePoint trigger creating Jira issue SEC-57

When a SharePoint list item is created → Get current user → Create Jira issue (SEC project, Task type, Low priority). Output: SEC-57 created at /rest/api/2/issue/SEC-57.

Jira Dashboard — Issue Created from SharePoint
Jira dashboard showing SEC-57 detail

SEC-57 — "test from power automate spo list to on prem jira server 2026". Status: To Do, Priority: Low, Reporter: Kerolos Admin. Created 4/12/2026. Full detail view with comments and attachment sections.

The full circle: SharePoint → Power Automate → Gateway → Jira

A non-technical user adds a row in SharePoint. Behind the scenes, a flow fires, calls the custom connector through the gateway, and creates a real Jira ticket on the on-prem server. No code, no VPN, no middleware fees.

The Gateway Bug Fix

Flow Wrappers — The Secret Sauce for Copilot Studio

Copilot Studio can't call custom connectors with on-prem gateway directly. The solution: wrap each Jira action in a Power Automate flow, then add the FLOW to the agent.

Jira - Get IssueMUST HAVE
1
Trigger: Run a flow from Copilot
Input: IssueKey
2
Jira On-Prem → Get issue
Issue Key = IssueKey
3
Respond
IssueKey, Summary, Status, Priority, Assignee, Description, IssueType
Jira - Search IssuesMUST HAVE
1
Trigger
Inputs: JQL, MaxResults
2
SearchIssues → Select
Map key, summary, status, priority, assignee
3
Respond
Results JSON, TotalCount
Jira - Create IssueMUST HAVE
1
Trigger
ProjectKey, Summary, IssueType, Description, Priority
2
CreateIssue
Map all fields
3
Respond
NewIssueKey, Message

Plus Add Comment and Transition Issue flows — 5 total. Each tested and working.

The AI Layer

Copilot Studio Agent — Natural Language to Jira

Add the 5 flows to the agent, paste the system prompt, turn on generative orchestration. Users chat in Teams and the agent translates to JQL + API calls automatically.

Jira Assistant
U
Show all bugs in INFRA
JA
INFRA-102 — VPN tunnel drops (In Progress, Highest)
INFRA-100 — Firewall firmware (In Progress, Highest)
Jira Assistant
U
Create a high priority bug in SEC for suspicious login
JA
Created SEC-58 — Suspicious login
Bug | High | Want to assign?
Go Live

Switch to Real Jira — 3 Changes

SettingSimulatorReal Jira
Host10.0.0.4:8080jira.yourcompany.com
SchemeHTTPHTTPS
PasswordtestYour real Jira PAT
For real Jira on-prem servers

Use HTTPS and your actual Jira URL (e.g. https://jira.yourcompany.com). The connector, flows, agent, and instructions all stay exactly the same — only the host, scheme, and PAT change. The 45 API actions match the real Atlassian Jira Data Center REST API v2 specification.

Download the Complete Package

Jira simulator + OpenAPI connector spec + deployment scripts + full documentation

Download Complete Package

Comments

Popular posts from this blog

How I Automated My Entire SharePoint Tenant with 150 MCP Tools and Claude Desktop

Azure Management MCP Server