@openpets/jira
v1.0.11
Published
Atlassian Jira & Confluence API integration for OpenCode - project management, issue tracking, and documentation
Maintainers
Readme
@opencode/jira
Atlassian Jira & Confluence API integration for OpenCode, providing comprehensive project management, issue tracking, and documentation access.
Installation
npm install @opencode/jiraSetup
- Get your Jira API token from Atlassian Account Settings
- Note your Jira base URL (e.g.,
https://your-company.atlassian.net) - Set your credentials as environment variables:
export JIRA_BASE_URL=https://your-company.atlassian.net
export [email protected]
export JIRA_API_TOKEN=your_api_token_hereOr create a .env file:
cp .env.example .env
# Edit .env and add your credentialsAvailable Tools
Board Operations
jira-get-boards
List all available Jira boards with optional filtering.
Example:
{
type: "scrum",
projectKey: "PROJ"
}jira-get-board-details
Get detailed information about a specific board.
Example:
{
boardId: "123"
}jira-get-board-issues
Get issues from a specific board.
Example:
{
boardId: "123",
jql: "status = 'In Progress'",
maxResults: 50
}More Jira Tools
The plugin includes many more tools for:
- Issue operations (create, update, transition, search)
- Comments and worklogs
- Project management
- User management
- And more...
Confluence Tools
confluence-list-spaces
List all accessible Confluence spaces.
Example:
{
status: "current", // or "archived"
limit: 10
}confluence-get-space-pages
Get all pages in a specific space.
Example:
{
spaceKey: "DURDEN",
limit: 25
}confluence-get-page-content
Get full content and metadata for a specific page.
Example:
{
pageId: "33049",
includeBody: true
}confluence-search-pages
Search pages using CQL (Confluence Query Language).
Example:
{
cql: "space = DURDEN AND type = page",
limit: 10,
includeBody: false
}CQL Examples:
space = DURDEN AND type = page
label = requirements
text ~ "API" AND space = EAMLI
created >= "2024-01-01" AND space = DURDENFeatures
Jira
- ✅ Full Jira REST API v2/v3 support
- ✅ Agile API integration
- ✅ JQL query support
- ✅ Issue CRUD operations
- ✅ Board and project management
Confluence
- ✅ Confluence v1 & v2 REST API support
- ✅ CQL (Confluence Query Language) search
- ✅ Space and page management
- ✅ Full HTML content retrieval
- ✅ Page hierarchy access
General
- ✅ Basic authentication with API tokens
- ✅ Comprehensive error handling
- ✅ Type-safe responses
- ✅ Same credentials for Jira and Confluence
Response Format
All tools return formatted JSON strings with consistent structure:
{
"total": 10,
"boards": [
{
"id": 123,
"name": "Board Name",
"type": "scrum",
"location": {
"projectKey": "PROJ"
}
}
]
}Errors include helpful context:
{
"error": "Jira API error: 404 Not Found",
"message": "Board not found",
"boardId": "123"
}API Versions
This plugin supports:
- REST API v2 (default)
- REST API v3 (optional)
- Agile API v1.0
Dependencies
dotenv- Environment variable management
License
MIT
