docs/integrations/app-integrations/jira.mdx
This documentation describes the integration of MindsDB with Jira, the #1 agile project management tool used by teams to plan, track, release and support world-class software with confidence. The integration allows MindsDB to access data from Jira and enhance it with AI capabilities.
Before proceeding, ensure the following prerequisites are met:
Establish a connection to Jira from MindsDB by executing the following SQL command and providing its handler name as an engine.
CREATE DATABASE jira_datasource
WITH
ENGINE = 'jira',
PARAMETERS = {
"jira_url": "https://example.atlassian.net",
"jira_username": "[email protected]",
"jira_api_token": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"cloud": true
};
Required connection parameters include the following:
jira_url: The base URL for your Jira instance/server.cloud (optional): Set true for Jira Cloud or false for Jira Server. Defaults to true.jira_usernamejira_api_tokencloud: false):
jira_personal_access_token, orjira_username and jira_passwordRetrieve data from a specified table by providing the integration and table names:
SELECT *
FROM jira_datasource.table_name
LIMIT 10;
The handler registers the following tables:
projects: Basic project metadata.issues: Normalized issue fields (project, summary, description, priority, status, labels, components, creator/reporter/assignee, timestamps).attachments: Attachments derived from issues.comments: Comments derived from issues.users: Users available to the current Jira context. Column set depends on cloud:
accountId, accountType, emailAddress, displayName, active, timeZone, locale, applicationRoles, avatarUrls, groupskey, name, emailAddress, displayName, active, timeZone, locale, lastLoginTime, applicationRoles, avatarUrls, groups, deleted, expandgroups: User groups (groupId, name, html).Attachments and comments are fetched by first loading issues. Use LIMIT whenever possible to reduce API calls.
List projects:
SELECT id, key, name
FROM jira_datasource.projects;
Fetch recent issues for a project:
SELECT key, summary, status, assignee, created
FROM jira_datasource.issues
WHERE project_key = 'ENG'
LIMIT 50;
Retrieve comments for a specific issue:
SELECT body, author, created
FROM jira_datasource.comments
WHERE issue_key = 'ENG-123';