This script imports recently updated Jira issues into a Dust datasource.This open-source script, available on GitHub atdust-tt/dust-labs/jira, automates the process of exporting issues updated in the last 24 hours from Jira and importing them into a Dust datasource. It fetches full issue details, like so:
Issue Key: KAN-3ID: 10002URL: https://dust4ai.atlassian.net/rest/api/3/issue/10002Summary: Nice task to doDescription:What do you think about this descriptionIssue Type: TaskStatus: To DoPriority: MediumAssignee: Alban Dumouilla (alban@dust.tt)Reporter: Alban Dumouilla (alban@dust.tt)Project: My Kanban Project (KAN)Created: 2024-08-20T15:51:58.901+0200Updated: 2024-08-20T16:26:36.215+0200Resolution: UnresolvedResolution Date: N/ALabels: testComponents:Sprint: N/AEpic: N/ATime Tracking: Original Estimate: N/A Remaining Estimate: N/A Time Spent: N/AVotes: 0Watches: 1Fix Versions:Affected Versions:Subtasks:Issue Links: Blocks KAN-1: This is a todo cardAttachments:Comments:[2024-08-20T16:26:36.076+0200] Author: Alban Dumouilla (alban@dust.tt)This is the first comment of the issue
The script then formats and uploads this data to Dust.The script only exports issues updated in the last 24 hours, so schedule it to run daily to keep your Dust knowledge base up to date with Jira. Your agents can then use the issue data to analyze support trends, response times, and customer service quality. The script uses rate limiting and error handling to stay reliable with large volumes of Jira issues.