AutomationFlowsGeneral › Daily Rackspace Ticket Report

Daily Rackspace Ticket Report

Daily Rackspace Ticket Report. Uses executeCommand, emailSend. Scheduled trigger; 5 nodes.

Cron / scheduled trigger★★★★☆ complexity5 nodesExecute CommandEmail Send
General Trigger: Cron / scheduled Nodes: 5 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Daily Rackspace Ticket Report",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 9 * * *"
            }
          ]
        }
      },
      "id": "daily-trigger",
      "name": "Daily at 9 AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "command": "uvx raxodus tickets list --days 1 --format json --debug",
        "env": {
          "RACKSPACE_USERNAME": "={{ $credentials.rackspace.username }}",
          "RACKSPACE_API_KEY": "={{ $credentials.rackspace.apiKey }}",
          "RACKSPACE_ACCOUNT": "={{ $credentials.rackspace.account }}"
        }
      },
      "id": "get-yesterday-tickets",
      "name": "Get Yesterday's Tickets",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "// Parse the JSON output\nconst output = JSON.parse($input.item.json.stdout);\nconst tickets = output.tickets || [];\n\n// Calculate statistics\nconst stats = {\n  total_tickets: tickets.length,\n  open_tickets: tickets.filter(t => t.status === 'open').length,\n  closed_tickets: tickets.filter(t => t.status === 'closed').length,\n  pending_tickets: tickets.filter(t => t.status === 'pending').length,\n  api_response_time: output.elapsed_seconds,\n  from_cache: output.from_cache\n};\n\n// Group by severity\nconst bySeverity = {};\ntickets.forEach(ticket => {\n  const severity = ticket.severity || 'unspecified';\n  bySeverity[severity] = (bySeverity[severity] || 0) + 1;\n});\n\n// Create report\nconst report = {\n  date: new Date().toISOString().split('T')[0],\n  statistics: stats,\n  by_severity: bySeverity,\n  tickets: tickets.map(t => ({\n    id: t.ticketId,\n    subject: t.subject,\n    status: t.status,\n    severity: t.severity,\n    created: t.created,\n    modified: t.modified\n  }))\n};\n\nreturn [{ json: report }];"
      },
      "id": "generate-report",
      "name": "Generate Report",
      "type": "n8n-nodes-base.code",
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "operation": "formatValue",
        "value": "={{ JSON.stringify($json, null, 2) }}",
        "format": "markdown",
        "markdown": "# Daily Rackspace Ticket Report\n**Date:** {{ $json.date }}\n\n## Statistics\n- **Total Tickets:** {{ $json.statistics.total_tickets }}\n- **Open:** {{ $json.statistics.open_tickets }}\n- **Closed:** {{ $json.statistics.closed_tickets }}\n- **Pending:** {{ $json.statistics.pending_tickets }}\n\n## By Severity\n{{ Object.entries($json.by_severity).map(([k, v]) => `- **${k}:** ${v}`).join('\\n') }}\n\n## API Performance\n- **Response Time:** {{ $json.statistics.api_response_time }}s\n- **From Cache:** {{ $json.statistics.from_cache ? 'Yes' : 'No' }}\n\n## Ticket Details\n{{ $json.tickets.map(t => `### ${t.id}: ${t.subject}\\n- Status: ${t.status}\\n- Severity: ${t.severity}`).join('\\n\\n') }}"
      },
      "id": "format-markdown",
      "name": "Format as Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "fromEmail": "n8n@company.com",
        "toEmail": "support-team@company.com",
        "subject": "Daily Rackspace Ticket Report - {{ $json.date }}",
        "emailType": "html",
        "message": "={{ $json.html }}"
      },
      "id": "send-email",
      "name": "Send Email Report",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1050,
        300
      ],
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "daily-trigger": {
      "main": [
        [
          {
            "node": "get-yesterday-tickets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get-yesterday-tickets": {
      "main": [
        [
          {
            "node": "generate-report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "generate-report": {
      "main": [
        [
          {
            "node": "format-markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "format-markdown": {
      "main": [
        [
          {
            "node": "send-email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Daily Rackspace Ticket Report. Uses executeCommand, emailSend. Scheduled trigger; 5 nodes.

Source: https://github.com/bdmorin/raxodus/blob/431b306a31603effced6ba55c6d795d2d75f33de/examples/n8n-workflows/daily-ticket-report.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

JobSearch Weekly Report. Uses executeCommand, emailSend. Scheduled trigger; 6 nodes.

Execute Command, Email Send
General

Amazon Product Price Tracker. Uses googleSheets, splitInBatches, httpRequest, emailSend. Scheduled trigger; 16 nodes.

Google Sheets, HTTP Request, Email Send
General

This workflow runs every Monday at 8am to check email-related DNS records (MX, SPF, DMARC, and DKIM) for all domains in your Hostinger account and sends an HTML alert email when it detects missing rec

N8N Nodes Hostinger Api, Email Send
General

Datetime Googlecalendar. Uses dateTime, noOp, googleCalendar, emailSend. Scheduled trigger; 13 nodes.

Google Calendar, Email Send
General

Generate Weekly Energy Consumption Reports with API, Email and Google Drive. Uses httpRequest, convertToFile, emailSend, googleDrive. Scheduled trigger; 12 nodes.

HTTP Request, Email Send, Google Drive