Automate Jira Issue Resolution with n8n and OpenAI GPT-4

Struggling with unresolved Jira issues that waste time and delay projects? This unique n8n workflow uses OpenAI GPT-4 to classify, resolve, and close long-lived Jira tickets automatically, boosting your support team’s efficiency.
jira
lmChatOpenAi
slack
+9
Workflow Identifier: 1126
NODES in Use: Schedule Trigger, Jira, Aggregate, Set, Langchain lmChatOpenAi, Langchain textClassifier, Langchain agent, Langchain sentimentAnalysis, Langchain outputParserStructured, Langchain chainLlm, Slack, Notion

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow checks Jira every day for unresolved issues older than 7 days.
It collects all comments and details for each issue.
Then it uses GPT-4 to decide if the issue is solved, needs more info, or still waiting.
If unsolved, AI looks for answers in Jira and Notion then tries to solve or remind.
It also rates customer feelings and sends messages to Slack or Jira.
This saves time by closing or alerting about stale tickets.


Tools and Services Used

  • Jira Software Cloud API: Fetches and updates issues and comments.
  • OpenAI GPT-4 Model: Classifies issue status and analyzes comments.
  • Notion API: Searches knowledge base for solutions.
  • Slack API: Sends notifications for negative feedback or unresolved issues.
  • n8n Automation Platform: Runs and manages the workflow.


Inputs, Processing Steps, and Outputs

Inputs

  • Daily trigger from n8n.
  • Jira issues older than 7 days with status “To Do” or “In Progress”.
  • Issue metadata and comments.
  • Knowledge base content from Notion.
  • Configured API Keys and credentials.

Processing Steps

  1. Schedule triggers daily run.
  2. Fetch list of unresolved long-lived Jira issues using JQL.
  3. Process each issue separately using an execution loop.
  4. Extract issue details and gather all comments.
  5. Format comments and issue summary for GPT input.
  6. Use GPT-4 to classify the issue state: resolved, pending info, or still waiting.
  7. For resolved issues, analyze customer sentiment.
  8. If sentiment positive, send feedback request; if negative, alert Slack and close with comments.
  9. For pending more info, query Jira and Notion knowledge bases using AI agent.
  10. Post solution or notify reporter and close the issue.
  11. For still waiting issues, send reminders if last comment not from bot.
  12. Notify Slack about unresolved or problematic tickets.

Outputs

  • Auto-comments added to Jira issues.
  • Issues closed if resolved or automated.
  • Feedback requests sent to customers.
  • Reminders posted on pending tickets.
  • Slack notifications for support teams.


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Download and Import

  1. Find the Download button on this page and save the workflow file.
  2. Open your n8n editor where you want to add this automation.
  3. Use Import from File option and select the saved workflow.

Step 2: Add Credentials and API Keys

  1. Go to the credentials section in n8n.
  2. Add or update API Keys for Jira, OpenAI (GPT-4), Slack, and Notion.
  3. Make sure you have permission to read and write in Jira and Slack.

Step 3: Update Identifiers and Settings

  1. Check inside Jira nodes for correct project ID or board IDs.
  2. Update Slack channel ID and email addresses if needed.
  3. Make sure Notion database IDs or URLs are correct.
  4. If there are prompt templates or URLs in text input nodes, review and edit as needed.

Step 4: Test the Workflow

  1. Run the workflow manually inside n8n with sample Jira issues.
  2. Watch the progress and check for errors.
  3. Verify comments added to Jira and Slack notifications.

Step 5: Activate for Production

  1. Once testing goes well, toggle the workflow active.
  2. The daily schedule will trigger the workflow automatically.
  3. Monitor run logs to catch problems early.

For users hosting n8n themselves, check out self-host n8n to maintain full control.


Why This Workflow Exists

Many Jira tickets stay open too long without updates.
Teams waste lot of time chasing these old issues.
This workflow finds and handles these tickets fast.
It helps support teams close or flag problems on time.
No need for manual checks every day.
It improves customer experience by quickly requesting feedback or solutions.


Customization Ideas

  • Change Jira issue age in JQL to less than 7 days for stricter checks.
  • Replace GPT-4o-mini with other GPT-3.5 or full GPT-4 to balance cost vs performance.
  • Add more knowledge sources like Confluence or Google Docs for wider solution search.
  • Edit Slack messages to include issue priority or severity.
  • Add language detection to handle tickets in multiple languages.


Troubleshooting

No issues returned by Jira node

Check the JQL query syntax.
Ensure API user has rights to read projects queried.

Errors parsing AI output in KnowledgeBase Agent

Confirm output parser schema matches GPT response format.
Make prompts clear to follow expected JSON structure.

Reminders missing or repeating

Review condition node filtering last message author.
Prevents sending reminders when last comment is bot-generated.


Pre-Production Checklist

  • Confirm Schedule Trigger fires daily.
  • Verify Jira JQL outputs expected issues.
  • Test all API credentials in Jira, Slack, OpenAI, and Notion.
  • Run test issues through full workflow to check AI classification.
  • Check Slack notifications arrive correctly.
  • Review AI comments on Jira for formatting.


Deployment Guide

After testing, activate the workflow in n8n editor.
Daily runs will process and update tickets automatically.
Watch logs for errors and adjust schedule or queries as needed.
This keeps team informed with Slack alerts and Jira comments.


Summary of Benefits and Outcomes

✓ Save over 10 hours weekly by automating ticket follow-ups.
✓ Reduce backlog by automatically closing or reminding about old Jira issues.
✓ Improve customer support with timely feedback and escalation.
✓ Keep team notified on Slack about issues needing attention.
✓ Focus team’s energy on new and urgent tickets.


Frequently Asked Questions

Yes, GPT-3.5 or full GPT-4 models can replace GPT-4o-mini in OpenAI nodes with some impact on cost.
API token use depends on how many issues and comments are processed per day, but the workflow is optimized to limit calls.
n8n securely stores API Keys and credentials, but users should restrict workflow access and update credentials regularly.
Yes, by increasing n8n resources and adjusting batch sizes in Jira query nodes, the workflow can process many issues in parallel.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free