Add Jira Cloud integration for quality issue tracking#521
Open
barbinbrad wants to merge 1 commit intomainfrom
Open
Add Jira Cloud integration for quality issue tracking#521barbinbrad wants to merge 1 commit intomainfrom
barbinbrad wants to merge 1 commit intomainfrom
Conversation
This adds a Jira Cloud integration similar to the existing Linear integration, allowing users to link nonConformance action tasks to Jira issues for project tracking and collaboration. Features: - OAuth 2.0 authentication with Atlassian Cloud - Search and link existing Jira issues to action tasks - Create new Jira issues from action tasks - Bidirectional sync of status, assignee, and notes - Webhook support for real-time updates from Jira - Remote links (backlinks) from Jira to Carbon Slack thread: https://carbon-ms.slack.com/archives/C0AF1HGUZ7X/p1771179788827569 https://claude.ai/code/session_01P9RVCjSHKjD3qXyyTZYGXe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds comprehensive Jira Cloud integration to Carbon, enabling users to link and sync quality issues (non-conformances and investigations) between Carbon and Jira. The integration supports:
Key Changes
New Packages & Modules
packages/ee/src/jira/: Complete Jira integration libraryclient.ts: REST API client with OAuth token management and issue operationsservice.ts: Database service layer for storing credentials and mappingstypes.ts: TypeScript types and Zod schemas for Jira entitiesrichtext.ts: Bidirectional ADF ↔ Tiptap conversion utilitiesutils.ts: Status mapping between Jira and Carbonconfig.tsx: Integration configuration and setup instructionsAPI Routes
integrations.jira.install.ts: OAuth initiation endpointintegrations.jira.oauth.ts: OAuth callback handlerintegrations.jira.issue.create.ts: Create new Jira issuesintegrations.jira.issue.link.ts: Link/unlink existing issueswebhook.jira.$companyId.ts: Webhook receiver for Jira eventsUI Components
IssueDialog.tsx: Modal for managing Jira issue linksCreateIssue.tsx: Form to create new Jira issuesLinkIssue.tsx: Search and link existing Jira issuesBackground Jobs
packages/jobs/trigger/jira.ts: Trigger.dev task for syncing Jira webhook eventsNotifications
packages/ee/src/notifications/services/jira.ts: Service to push Carbon task updates to JiraDatabase
Technical Details
externalIntegrationMappingtable for trackingMandatory Tasks
How should this be tested?
JIRA_CLIENT_ID,JIRA_CLIENT_SECRET, andJIRA_STATE_SECRETenvironment variables are configuredThe integration is fully functional with automated OAuth state verification and token refresh mechanisms.
https://claude.ai/code/session_01P9RVCjSHKjD3qXyyTZYGXe