{{ 'TASK_AUTOMATIONS.FORM.ANY_PROJECT' | translate }} @for (choice of projects(); track choice.value) { {{ choice.label }} }
{{ 'TASK_AUTOMATIONS.FORM.ANY_TEAM' | translate }} @for (choice of teams(); track choice.value) { {{ choice.label }} }
{{ 'TASK_AUTOMATIONS.FORM.ENABLED' | translate }}
{{ 'TASK_AUTOMATIONS.FORM.WHEN' | translate }}
@for (type of triggerTypes; track type) { {{ 'TASK_AUTOMATIONS.TRIGGERS.' + type | translate }} }

{{ 'TASK_AUTOMATIONS.TRIGGER_HINTS.' + draft().trigger.type | translate }}

@if (draft().trigger.type === triggers.STATUS_CHANGED) {
@for (choice of statusesWith(draft().trigger.toStatuses); track choice.value) { {{ choice.label }} }
@for (choice of statusesWith(draft().trigger.fromStatuses); track choice.value) { {{ choice.label }} }
} @if (draft().trigger.type === triggers.LINK_CLOSED) {
{{ 'TASK_AUTOMATIONS.FORM.MERGED_ONLY' | translate }}

{{ 'TASK_AUTOMATIONS.FORM.MERGED_ONLY_HINT' | translate }}

}
{{ 'TASK_AUTOMATIONS.FORM.IF' | translate }}
@if (!draft().conditions.length) {

{{ 'TASK_AUTOMATIONS.FORM.NO_CONDITIONS' | translate }}

} @for (condition of draft().conditions; track $index; let index = $index) {
@for (type of conditionTypes; track type) { {{ 'TASK_AUTOMATIONS.CONDITIONS.' + type | translate }} } @switch (conditionInputOf(condition.type)) { @case ('text') { } @case (null) {} @default { @for (choice of conditionChoices(condition); track choice.value) { {{ choice.translate ? (choice.label | translate) : choice.label }}@if (choice.detail) { · {{ choice.detail }} } } } }
} @if (draft().conditions.length < limits.conditionsPerRule) { }
{{ 'TASK_AUTOMATIONS.FORM.THEN' | translate }}
@for (action of draft().actions; track $index; let index = $index) {
@for (type of actionTypes; track type) { {{ 'TASK_AUTOMATIONS.ACTIONS.' + type | translate }} } @switch (actionInputOf(action.type)) { @case ('status') { @for (category of categories; track category) { {{ 'TASK_AUTOMATIONS.CATEGORIES.' + category | translate }} } @for (choice of statusesWith(action.status ? [action.status] : []); track choice.value) { {{ choice.label }} } } @case ('priority') { @for (choice of prioritiesWith(action.priority ? [action.priority] : []); track choice.value) { {{ choice.label }} } } @case ('employees') { @for (choice of employeesWith(action.employeeIds); track choice.value) { {{ choice.label }}@if (choice.detail) { · {{ choice.detail }} } } } @case ('tags') { @for (choice of tagsWith(action.tagIds); track choice.value) { {{ choice.label }} } } @default { } }
} @if (draft().actions.length < limits.actionsPerRule) { } @if (shownErrors().length) { }