feat: implement bi-directional Linear/Jira integration#421
Merged
Conversation
This implements AGENT 5 mission for Linear and Jira integration with bi-directional sync capabilities. ## Linear Client Enhancements (cortex-engine/src/linear/) - Added URL and short reference parsing with regex patterns - Implemented retry logic with exponential backoff (3 retries) - Added write operations: create_issue, add_comment, update_issue_state, update_issue_priority, update_issue_assignee - Added context enrichment with enrich_context() method - Added LinearRef type for extracted references - Added CreateIssueInput type for issue creation - Comprehensive test coverage (10 tests) ## New Jira Client (cortex-engine/src/jira/) - Complete REST API client for Jira Cloud and Server/Data Center - URL parsing for both Cloud (atlassian.net) and Server deployments - Rate limiting (500 req/5min for Jira Cloud) - Full CRUD operations: get_issue, create_issue, update_issue, add_comment - Workflow operations: get_transitions, transition_issue - JQL search support with search_issues() - ADF (Atlassian Document Format) text extraction - Context enrichment similar to Linear - Comprehensive test coverage (9 tests) ## Module Integration - Added jira module to cortex-engine/src/lib.rs - Added comprehensive re-exports for both Linear and Jira types Resolves: ORCHESTRATE/AGENT_5_LINEAR_JIRA.md
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.
Summary
This PR implements the AGENT 5 mission for Linear and Jira integration with full bi-directional sync capabilities for the Cortex CLI.
Changes
Linear Client Enhancements (
cortex-engine/src/linear/)LIN-123,https://linear.app/team/issue/LIN-123)create_issue()- Create new issues with full field supportadd_comment()- Add comments to issuesupdate_issue_state()- Change issue statusupdate_issue_priority()- Change issue priorityupdate_issue_assignee()- Assign/unassign usersenrich_context()method for automatic ticket detail enrichmentLinearReftype for extracted referencesCreateIssueInputtype for issue creationNew Jira Client (
cortex-engine/src/jira/)https://company.atlassian.net/browse/PROJ-123https://jira.company.com/browse/PROJ-123get_issue()/get_issue_details()- Fetch issue informationcreate_issue()- Create new issuesupdate_issue()- Update issue fieldsadd_comment()- Add commentsget_transitions()- List available transitionstransition_issue()- Change issue statusassign_issue()- Assign/unassign userssearch_issues()- JQL query supportenrich_context()for automatic ticket detail enrichmentModule Integration
jiramodule tocortex-engine/src/lib.rsTesting
cargo checkpassescargo fmtappliedRelated
Resolves: ORCHESTRATE/AGENT_5_LINEAR_JIRA.md