---
title: "How to migrate and configure Blog Workflows in CDM Cloud"
canonical: "https://support.appfire.com/space/SUPPORT/3842146803/How+to+migrate+and+configure+Blog+Workflows+in+CDM+Cloud"
format: markdown
---
## Summary

In Confluence Data Center, Comala Document Management allows users to target blog posts specifically using the `content=news` parameter. However, in Confluence Cloud, the app does not natively distinguish between pages and blog posts when evaluating active space workflows. This article covers how to migrate and configure blog-specific workflows in Cloud using labels and Confluence Automation.

## Problem

A workflow intended only for blog posts (e.g., using `content=news` in Data Center) is being applied to regular pages in Confluence Cloud, or it is not triggering correctly because Cloud does not support blog-specific events like `newsstatechanged`.

## Cause

- **Architectural Difference:** Comala Document Management Cloud evaluates active space workflows across all content (pages and blogs) without distinction.
- **Unsupported Events:** Cloud does not support blog-specific triggers such as `newsstatechanged` and `newsupdated`. These triggers are automatically removed during Data Center to Cloud migration, causing automations to fail.

## Solution

To maintain blog-specific workflows in Cloud, you must use a combination of label-based workflow application and Confluence Automation to tag blog posts.

### Step 1: Prepare a Cloud-Ready Workflow in Data Center

Before migrating, create a version of your workflow that uses Cloud-compatible triggers and label filters.

1. In your Data Center instance, copy the existing blog workflow and give it a clear name (e.g., **Service Desk Blog (Cloud)**).
2. In the new workflow copy, replace blog-specific events with their standard equivalents:
  - `newsstatechanged` → `statechanged`
  - `newsupdated` → `pageupdated`
3. Add a label filter to the `{workflow}` macro so it only applies to content with a specific label (e.g., `sd-blog`).
4. **Do not** modify the original workflow; this ensures your Data Center environment continues to function until the migration is complete.

### Step 2: Post-Migration Cleanup in Cloud

Once the migration is finished, remove the original (non-functional) workflow from the Cloud space.

1. Navigate to **Space settings** > **Comala Document Management** > **Space Workflows**.
2. Remove the original **Service Desk Blog** workflow. This prevents it from incorrectly attaching to regular pages.

### Step 3: Automate Labeling for New Blog Posts

Use Confluence Automation to ensure all future blog posts receive the required label automatically.

1. Go to **Space settings** > **Automation** and click **Create rule**.
2. **Trigger:** Blog published.
3. **Action:** Add labels (e.g., `sd-blog`).
4. Name, save, and turn on the rule.

### Step 4: Label Existing Blog Posts (One-Time Task)

To apply the workflow to existing blog posts, run a manual automation rule.

1. In **Space settings** > **Automation**, click **Create rule**.
2. **Trigger:** Scheduled (the default interval is fine as you will run this manually).
3. **Component:** Branch flow / related entities > **Branch on CQL**.
4. **CQL:** `space = "YOUR_SPACE_KEY" and type = "blogpost"` (Replace `YOUR_SPACE_KEY` with your actual space key).
5. **Action (under the branch):** Add labels (e.g., `sd-blog`).
6. Save the rule, then select **Run rule** from the rule's menu (...).
7. Verify the labels in the **Audit log**, then disable the rule.

## Related Articles

- [Label Based Workflows](https://support.appfire.com/space/CDMC/2193033075/At+space+level#Label-based-workflows)