{
  "schema_version": "1.0.0",
  "id": "clickup-done-to-slack",
  "title": "Post finished ClickUp tasks to a Slack wins channel",
  "category": "ops",
  "difficulty": "beginner",
  "featured": false,
  "description": "When a ClickUp task moves to complete, post its name, assignee, and link to a Slack channel so finished work is visible.",
  "tags": [
    "clickup",
    "slack",
    "status",
    "team"
  ],
  "apps": [
    "ClickUp",
    "Filter by Zapier",
    "Slack"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 2 steps after the trigger",
      "Filter by Zapier"
    ]
  },
  "tasks": {
    "typical": 0,
    "max": 1
  },
  "trigger": {
    "app": "ClickUp",
    "event": "Updated Task",
    "kind": "instant",
    "title": "Task updated in Delivery",
    "why": "Fires on any change to a task in the space. The filter below keeps only the change to complete.",
    "config": {
      "Workspace": "YOUR_CLICKUP_WORKSPACE",
      "Space": "Delivery",
      "List": "(any)"
    },
    "outputs": [
      "task_id",
      "name",
      "status",
      "assignees",
      "list_name",
      "url",
      "date_updated"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "done",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only tasks that just became complete",
      "why": "Most updates are comments, due-date changes, or assignments. Those stop here.",
      "conditions": [
        [
          {
            "field": "{{trigger.status}}",
            "operator": "(Text) Exactly matches",
            "value": "complete"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "post",
      "kind": "action",
      "app": "Slack",
      "event": "Send Channel Message",
      "title": "Post the win",
      "why": "Short, linkable, and in a channel people can mute if they want.",
      "fields": {
        "Channel": "#wins",
        "Message Text": ":tada: *{{trigger.name}}* is done ({{trigger.list_name}}) by {{trigger.assignees}}. {{trigger.url}}",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts",
        "Include a link to this Zap?": "No"
      },
      "outputs": [
        "ts",
        "permalink"
      ]
    }
  ]
}
