Flag events that have a label from a specific category

Flag events that have a label from a specific category

In this article, you will find the rules document for flagging events that have a label from a specific category.

Before you begin

To learn how to access the rules page, refer to this article.

Flag events that have a label from a specific category

Notes
Note: This is a complete rules document. In the rules page, copy this JSON into the editor.

Info
[
  {
    "name": "json1",
    "operator": "any",
    "rules": [
      {
        "conditions": {
          "all": [
            {
              "fact": "secondaryCategories",
              "operator": "contains",
              "value": "Camera Angle"
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event has a label from the \"Camera Angle\" category"
          }
        }
      }
    ]
  }
]