Move an item to “Planned” state when its Release / Iteration / Team Iteration is set

📘

Affects only items in the Initial state (because of the filter EntityState.IsInitial is true)
The state should be marked as “Planned” in the workflow setup.

📘

How to apply this rule?

Move an item to “Planned” state when its Release is set

The filter by Project.Name is optional.

11461146
[
  {
    "type": "source:targetprocess:EntityChanged",
    "entityTypes": [
      "Feature",
      "Bug",
      "Task",
      "UserStory"
    ],
    "modifications": {
      "created": true,
      "deleted": false,
      "updated": [
        "Release"
      ]
    }
  },
  {
    "or": [
      {
        "and": [
          {
            "target": {
              "type": "field",
              "name": "Release",
              "target": {
                "type": "pipelineBlockOutput"
              }
            },
            "value": {
              "type": "constant",
              "value": null
            },
            "operator": {
              "type": "exists"
            }
          },
          {
            "target": {
              "type": "field",
              "name": "IsInitial",
              "target": {
                "type": "field",
                "name": "EntityState",
                "target": {
                  "type": "pipelineBlockOutput"
                }
              }
            },
            "value": {
              "type": "constant",
              "value": true
            },
            "operator": {
              "type": "is true"
            }
          },
          {
            "target": {
              "type": "field",
              "name": "Name",
              "target": {
                "type": "field",
                "name": "Project",
                "target": {
                  "type": "pipelineBlockOutput"
                }
              }
            },
            "value": {
              "type": "constant",
              "value": "Mobile"
            },
            "operator": {
              "type": "is"
            }
          }
        ]
      }
    ],
    "type": "filter:Relational"
  },
  {
    "type": "action:targetprocess:MoveToState",
    "target": {
      "type": "pipelineBlockOutput",
      "blockAlias": "ui:source"
    },
    "stateKind": "Planned"
  }
]

Move an item to “Planned” state when its Iteration is set

The filter by Project.Name is optional.

11361136
[
  {
    "type": "source:targetprocess:EntityChanged",
    "entityTypes": [
      "Feature",
      "Bug",
      "Task",
      "UserStory"
    ],
    "modifications": {
      "created": true,
      "deleted": false,
      "updated": [
        "Iteration"
      ]
    }
  },
  {
    "or": [
      {
        "and": [
          {
            "target": {
              "type": "field",
              "name": "Iteration",
              "target": {
                "type": "pipelineBlockOutput"
              }
            },
            "value": {
              "type": "constant",
              "value": null
            },
            "operator": {
              "type": "exists"
            }
          },
          {
            "target": {
              "type": "field",
              "name": "IsInitial",
              "target": {
                "type": "field",
                "name": "EntityState",
                "target": {
                  "type": "pipelineBlockOutput"
                }
              }
            },
            "value": {
              "type": "constant",
              "value": true
            },
            "operator": {
              "type": "is true"
            }
          },
          {
            "target": {
              "type": "field",
              "name": "Name",
              "target": {
                "type": "field",
                "name": "Project",
                "target": {
                  "type": "pipelineBlockOutput"
                }
              }
            },
            "value": {
              "type": "constant",
              "value": "Mobile"
            },
            "operator": {
              "type": "is"
            }
          }
        ]
      }
    ],
    "type": "filter:Relational"
  },
  {
    "type": "action:targetprocess:MoveToState",
    "target": {
      "type": "pipelineBlockOutput",
      "blockAlias": "ui:source"
    },
    "stateKind": "Planned"
  }
]

Move an item to “Planned” state when its Team Iteration is set

The filter by ResponsibleTeam.Team.Name is optional.

11391139
[
  {
    "type": "source:targetprocess:EntityChanged",
    "entityTypes": [
      "Feature",
      "Bug",
      "Task",
      "UserStory"
    ],
    "modifications": {
      "created": true,
      "deleted": false,
      "updated": [
        "TeamIteration"
      ]
    }
  },
  {
    "or": [
      {
        "and": [
          {
            "target": {
              "type": "field",
              "name": "TeamIteration",
              "target": {
                "type": "pipelineBlockOutput"
              }
            },
            "value": {
              "type": "constant",
              "value": null
            },
            "operator": {
              "type": "exists"
            }
          },
          {
            "target": {
              "type": "field",
              "name": "IsInitial",
              "target": {
                "type": "field",
                "name": "EntityState",
                "target": {
                  "type": "pipelineBlockOutput"
                }
              }
            },
            "value": {
              "type": "constant",
              "value": true
            },
            "operator": {
              "type": "is true"
            }
          },
          {
            "target": {
              "type": "field",
              "name": "Name",
              "target": {
                "type": "field",
                "name": "Team",
                "target": {
                  "type": "field",
                  "name": "ResponsibleTeam",
                  "target": {
                    "type": "pipelineBlockOutput"
                  }
                }
              }
            },
            "value": {
              "type": "constant",
              "value": "Marketing Team"
            },
            "operator": {
              "type": "is"
            }
          }
        ]
      }
    ],
    "type": "filter:Relational"
  },
  {
    "type": "action:targetprocess:MoveToState",
    "target": {
      "type": "pipelineBlockOutput",
      "blockAlias": "ui:source"
    },
    "stateKind": "Planned"
  }
]