Skip to content

Add Atlassian Jira MCP integration with precise failure-mode reporting#3

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/access-jira-issue-d0-1
Draft

Add Atlassian Jira MCP integration with precise failure-mode reporting#3
Copilot wants to merge 3 commits intomainfrom
copilot/access-jira-issue-d0-1

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 29, 2026

Adds the ability to fetch Jira issue D0-1 via the Atlassian REST API, reporting one of four exact failure labels (MCP not configured / authentication failed / permission denied / issue not found) when access fails.

New files

  • jira_client.py — Jira REST v3 client driven by env vars (JIRA_BASE_URL, JIRA_USER, JIRA_API_TOKEN). Raises JiraMcpError(FailureType) with a precise category on every failure path.
  • jira_mcp.py — Entry-point script: fetches D0-1 and prints issue key, summary, status, assignee, first 3 acceptance criteria, first 2 linked issues. Exits 1 and prints ERROR: <failure-label> on any error.
  • .gitignore — Standard Python ignores (__pycache__, bytecode, venvs, .env).

Failure-type mapping

Condition Printed label
Any env var missing MCP not configured
Network / DNS error MCP not configured
HTTP 401 authentication failed
HTTP 403 permission denied
HTTP 404 issue not found

Current environment

Atlassian MCP is not configured — running python jira_mcp.py without credentials produces:

ERROR: MCP not configured
Detail: Missing environment variable(s): JIRA_BASE_URL, JIRA_USER, JIRA_API_TOKEN. ...

Once the three env vars are set the script fetches and prints the required fields:

Issue key : D0-1
Summary   : Implement IoT telemetry endpoint
Status    : In Progress
Assignee  : Alice Smith
Acceptance criteria (first 3):
  1. Device sends data every 5 seconds
  2. Server returns 200 OK
  3. Error responses logged
Linked issues (first 2):
  [Blocks] D0-2 – Deploy to staging
  [Relates to] D0-5 – Update docs

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI changed the title [WIP] Access Jira issue D0-1 details Add Atlassian Jira MCP integration with precise failure-mode reporting Mar 29, 2026
Copilot AI requested a review from soloxio March 29, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants