{
  "name": "Turn new Jira tickets into CloudCLI AI coding sessions with Claude Code",
  "nodes": [
    {
      "id": "a0000000-0000-0000-0000-000000000001",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -160
      ],
      "parameters": {
        "width": 480,
        "height": 700,
        "content": "## Turn New Jira Tickets into Claude Code, Gemini, Cursor or Codex Sessions with CloudCLI\n\n### When a Jira ticket is created, this workflow sends it to a CloudCLI cloud dev environment where an AI age"
      }
    },
    {
      "id": "a0000000-0000-0000-0000-000000000002",
      "name": "Sticky Note - Step 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        0
      ],
      "parameters": {
        "width": 500,
        "height": 360,
        "content": "## 1. Capture New Jira Ticket\n\nThe workflow triggers when a new issue is created in your Jira project. The ticket key, summary, and description are extracted for use as the agent's task.\n\nUpdate the w"
      }
    },
    {
      "id": "a0000000-0000-0000-0000-000000000003",
      "name": "Sticky Note - Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        0
      ],
      "parameters": {
        "width": 300,
        "height": 360,
        "content": "## 2. Compose Agent Prompt\n\nThe ticket details are formatted into a prompt for the AI agent. Customize this to include your project's coding standards, conventions, or any context the agent should kno"
      }
    },
    {
      "id": "a0000000-0000-0000-0000-000000000004",
      "name": "Sticky Note - Step 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        0
      ],
      "parameters": {
        "width": 560,
        "height": 360,
        "content": "## 3. Get Environment & Run Agent\n[CloudCLI Docs](https://developer.cloudcli.ai)\n\nThe Get Environment node fetches your environment's details including its live access URL. The agent then runs the tas"
      }
    },
    {
      "id": "a0000000-0000-0000-0000-000000000005",
      "name": "Sticky Note - Step 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        0
      ],
      "parameters": {
        "width": 560,
        "height": 360,
        "content": "## 4. Post Results to Jira\n\nThe agent's result text, session duration, cost, and multiple ways to continue the session are extracted and posted back to the Jira ticket as a comment:\n\n- **Web UI** link"
      }
    },
    {
      "id": "a0000000-0000-0000-0000-000000000006",
      "name": "Sticky Note - Community Node",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        720
      ],
      "parameters": {
        "width": 480,
        "height": 140,
        "content": "### Community Node\nThis workflow uses the **CloudCLI** verified community node (`@cloudcli-ai/n8n-nodes-cloud-cli`). Install it from the n8n nodes panel. [Learn more](https://docs.n8n.io/integrations/"
      }
    },
    {
      "id": "b0000000-0000-0000-0000-000000000001",
      "name": "New Jira Issue Created",
      "type": "n8n-nodes-base.jiraTrigger",
      "position": [
        -20,
        300
      ]
    },
    {
      "id": "b0000000-0000-0000-0000-000000000002",
      "name": "Extract Ticket Details",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        300
      ]
    },
    {
      "id": "b0000000-0000-0000-0000-000000000003",
      "name": "Compose Agent Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        520,
        300
      ]
    },
    {
      "id": "b0000000-0000-0000-0000-000000000004",
      "name": "Get Environment Details",
      "type": "@cloudcli-ai/n8n-nodes-cloud-cli.cloudCli",
      "position": [
        860,
        300
      ]
    },
    {
      "id": "b0000000-0000-0000-0000-000000000005",
      "name": "Run AI Coding Agent",
      "type": "@cloudcli-ai/n8n-nodes-cloud-cli.cloudCli",
      "position": [
        1140,
        300
      ]
    },
    {
      "id": "b0000000-0000-0000-0000-000000000006",
      "name": "Extract Agent Result",
      "type": "n8n-nodes-base.set",
      "position": [
        1460,
        300
      ]
    },
    {
      "id": "b0000000-0000-0000-0000-000000000007",
      "name": "Post Results to Jira",
      "type": "n8n-nodes-base.jira",
      "position": [
        1740,
        300
      ]
    }
  ],
  "connections": {
    "Run AI Coding Agent": {
      "main": [
        [
          {
            "node": "Extract Agent Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compose Agent Prompt": {
      "main": [
        [
          {
            "node": "Get Environment Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Agent Result": {
      "main": [
        [
          {
            "node": "Post Results to Jira",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Ticket Details": {
      "main": [
        [
          {
            "node": "Compose Agent Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Jira Issue Created": {
      "main": [
        [
          {
            "node": "Extract Ticket Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Environment Details": {
      "main": [
        [
          {
            "node": "Run AI Coding Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}