WorkItemTemplate/example-createif-template.json

{
    "createIfProfile": {
        "IsVegaRelease": [
            {
                "System.Title": "Vega *"
            }
        ],
        "IsDnaRelease": [
            {
                "System.Title": "DnA *"
            }
        ]
    },
    "parentWorkItemTypes": [
        "Release"
    ],
    "forTeams": [
        "DnA Team",
        "Release Team"
    ],
    "prefixItemTitlesWith": "* ",
    "items": {
        "Set Release to Committed AND Create vNext Release PBI": {
            "createIf": "IsDnaRelease",
            "when": "Tue, after release decision",
            "category": "Boards",
            "fields": {
                "System.Description": "Create new Release PBI for the next release using the 'Release vNext' Template</p><p>So that developers have somewhere to put their release test tasks for next release</p>",
                "System.IterationPath": "{System.IterationPath}",
                "System.AreaPath": "{System.AreaPath}",
                "System.AssignedTo": "{System.AssignedTo}",
                "Microsoft.VSTS.Common.Activity": "Deployment",
                "Microsoft.VSTS.Scheduling.RemainingWork": "0.1"
            }
        },
        "Some other task without createIf": {
            "when": "Always",
            "category": "General",
            "fields": {
                "System.Description": "This task always runs regardless of release type"
            }
        }
    }
}