{
  "id": "nD50vWafpH5ROZkE",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "JiraMCP",
  "tags": [],
  "nodes": [
    {
      "id": "ec2817a1-fdeb-4220-9f19-7b904c6e02fd",
      "name": "MCP Server Trigger",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        96,
        -208
      ],
      "parameters": {
        "path": "837401df-ddca-4f2c-b71d-34724355b21e"
      },
      "typeVersion": 2
    },
    {
      "id": "4b342630-2f19-4b06-bf18-53dcfdd43173",
      "name": "Get an issue changelog in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        -192,
        16
      ],
      "parameters": {
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "operation": "changelog"
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8042bba0-fade-43e4-a218-884b33edfa4b",
      "name": "Delete an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        752,
        16
      ],
      "parameters": {
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "operation": "delete"
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "591f4b45-835d-4aac-aa46-853a78c36f59",
      "name": "Get an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        -32,
        16
      ],
      "parameters": {
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "operation": "get",
        "additionalFields": {}
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "dd2fd194-0b17-4e2f-a364-1838b33569bf",
      "name": "Get many issues in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        128,
        16
      ],
      "parameters": {
        "options": {},
        "operation": "getAll",
        "returnAll": true
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "87b1f430-19c7-4ad3-a11c-062b2dcd0353",
      "name": "Create an email notification for an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        480,
        16
      ],
      "parameters": {
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "resource": "issue",
        "operation": "notify",
        "jiraVersion": "cloud",
        "jsonParameters": false,
        "descriptionType": "auto",
        "additionalFields": {},
        "notificationRecipientsUi": {},
        "notificationRecipientsRestrictionsUi": {}
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "195e56c0-018c-40f3-884f-918a64db44bd",
      "name": "Get the status of an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        -352,
        16
      ],
      "parameters": {
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "operation": "transitions",
        "additionalFields": {}
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e6e0c4b4-7749-467c-bf22-8285355228c6",
      "name": "Update an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        608,
        16
      ],
      "parameters": {
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "operation": "update",
        "updateFields": {}
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7157b3d4-23d7-42b5-9a31-a911f33a314e",
      "name": "Get a comment in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        -48,
        224
      ],
      "parameters": {
        "options": {},
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "resource": "issueComment",
        "commentId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Comment_ID', ``, 'string') }}",
        "operation": "get"
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7d5b55bc-68ed-4c25-a617-5b65db30d892",
      "name": "Get many comments in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        128,
        224
      ],
      "parameters": {
        "options": {},
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "resource": "issueComment",
        "operation": "getAll",
        "returnAll": true
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7250ca85-a2f4-4816-a956-a4376fec9704",
      "name": "Remove a comment in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        768,
        208
      ],
      "parameters": {
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "resource": "issueComment",
        "commentId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Comment_ID', ``, 'string') }}",
        "operation": "remove"
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a420cb83-0f48-4bf5-a92b-c7ea41b2a3ab",
      "name": "Update a comment in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        544,
        208
      ],
      "parameters": {
        "comment": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Comment', ``, 'string') }}",
        "options": {},
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "resource": "issueComment",
        "commentId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Comment_ID', ``, 'string') }}",
        "operation": "update"
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7b774604-7ea0-433e-9765-e40ecc3a7fe8",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -672,
        -240
      ],
      "parameters": {
        "public": true,
        "options": {}
      },
      "typeVersion": 1.3
    },
    {
      "id": "834ef692-92c3-4c91-be4e-d5db01adc974",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -704,
        -48
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2.2
    },
    {
      "id": "10d39a0a-976d-4bfe-a481-3bd6ac3df644",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -640,
        320
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "6697ca78-7973-4e75-bb40-4dc90cfbc093",
      "name": "MCP Client",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        -480,
        304
      ],
      "parameters": {
        "endpointUrl": "http://localhost:5678/mcp/837401df-ddca-4f2c-b71d-34724355b21e"
      },
      "typeVersion": 1.1
    },
    {
      "id": "22bef95b-bfd3-4374-addd-f892e1f5e1fb",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -800,
        320
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "9114b111-35f6-4335-875f-b7dda64eb1a9",
      "name": "Create an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        336,
        16
      ],
      "parameters": {
        "project": {
          "__rl": true,
          "mode": "list",
          "value": "10000",
          "cachedResultName": "My Scrum Project"
        },
        "summary": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Summary', ``, 'string') }}",
        "issueType": {
          "__rl": true,
          "mode": "list",
          "value": "10003",
          "cachedResultName": "Story"
        },
        "additionalFields": {
          "description": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Description', ``, 'string') }}"
        }
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3dc4aff3-0af3-40c6-994f-429795af5c17",
      "name": "Add a comment in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        336,
        208
      ],
      "parameters": {
        "comment": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Comment', ``, 'string') }}",
        "options": {},
        "issueKey": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Issue_Key', ``, 'string') }}",
        "resource": "issueComment"
      },
      "credentials": {
        "jiraSoftwareCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e17eaee2-8a26-4b5c-a879-59a8c672138a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1344,
        -368
      ],
      "parameters": {
        "width": 944,
        "height": 2032,
        "content": "## Demo Video\n\n\ud83c\udfa5 **Watch the Complete Demo**: [Automate Jira Issue Creation with n8n & AI | MCP Server Integration](https://youtu.be/mMHDlwTS9Cs?si=GCqC5A-Xbzy45-uZ)\n\n## Prerequisites\n\nBefore setting up this workflow, ensure you have:\n\n- **n8n instance** (cloud or self-hosted)\n- **Jira Software** account with appropriate permissions\n- **Google Gemini API** credentials\n- **MCP Server** configured and accessible\n- Basic understanding of n8n workflows\n\n## Setup Guide\n\n### Step 1: Import the Workflow\n\n1. Copy the workflow JSON from this template\n2. In your n8n instance, click **Import** > **From Text**\n3. Paste the JSON and click **Import**\n\n### Step 2: Configure Google Gemini\n\n1. Open the **Google Gemini Chat Model** node\n2. Add your Google Gemini API credentials\n3. Configure the model parameters:\n   - Model: `gemini-pro` (recommended)\n   - Temperature: `0.7` for balanced creativity\n   - Max tokens: As per your requirements\n\n### Step 3: Set Up MCP Server Connection\n\n1. Configure the **MCP Client** node:\n   - Server URL: Your MCP server endpoint\n   - Authentication: Add required credentials\n   - Timeout: Set appropriate timeout values\n\n2. Ensure your MCP server supports Jira operations:\n   - Issue creation and retrieval\n   - Comment management\n   - Status updates\n   - Changelog access\n\n### Step 4: Configure Jira Integration\n\n1. Set up Jira credentials in n8n:\n   - Go to **Credentials** > **Add Credential**\n   - Select **Jira Software API**\n   - Add your Jira instance URL, email, and API token\n\n2. Configure each Jira node:\n   - **Get Issue Status**: Set project key and filters\n   - **Create Issue**: Define issue type and required fields\n   - **Manage Comments**: Set permissions and content rules\n\n### Step 5: Memory Configuration\n\n1. Configure the **Simple Memory** node:\n   - Set memory key for conversation context\n   - Define memory retention duration\n   - Configure memory scope (user/session level)\n\n### Step 6: Chat Trigger Setup\n\n1. Configure the **When Chat Message Received** trigger:\n   - Set up webhook URL or chat platform integration\n   - Define message filters if needed\n   - Test the trigger with sample messages\n\n## Usage Examples\n\n### Creating a Jira Issue\n\n**Chat Input:**\n```\nCan you create an issue in Jira for Login Page with detailed description and acceptance criteria?\n```\n\n**Expected Output:**\n- New Jira issue created with structured description\n- Automatically generated acceptance criteria\n- Proper labeling and categorization\n"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "14271844-202c-4cd5-882b-b5d288a07546",
  "connections": {
    "MCP Client": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Add a comment in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get a comment in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get many issues in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Remove a comment in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update a comment in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get many comments in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get an issue changelog in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get the status of an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create an email notification for an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}