Create a Related Bug for new Requests

To implement such scenario Modified Entity source should be selected for an Automation Rule:

393

Next type of modified entity, modification type should be selected.

In this case Request entity type and Created modifications should be selected:

781

Several types of Filters can be used optionally in automation rules.

Rule execution can be filtered by one or several processes of the modified entity. For example, the filter by the Process name can be added (e.g. 'Kanban' process):

521

After filters are defined one or several Actions done by the rule the should be defined.

In this case Create entity as a relation should be selected.

For this action type of created entity and relation are necessary to select.

Here it will be Bug and Outbound Dependency.

For new bug it is required to define Name and Project at least.

965

Optionally description can be added to the rule.

Rule config:

📘

How to apply this rule?

[
  {
    "type": "source:targetprocess:EntityChanged",
    "entityTypes": [
      "Request"
    ],
    "modifications": {
      "created": true,
      "deleted": false,
      "updated": false
    }
  },
  {
    "type": "action:targetprocess:CreateEntityAndAddRelation",
    "fields": {
      "Name": {
        "type": "constant",
        "value": "Auto created bug"
      },
      "Project": {
        "name": "Project",
        "type": "field",
        "target": {
          "type": "pipelineBlockOutput"
        }
      }
    },
    "isInbound": {
      "type": "constant",
      "value": false
    },
    "entityType": {
      "type": "constant",
      "value": "Bug"
    },
    "relationType": {
      "type": "constant",
      "value": "Dependency"
    }
  }
]