Files
task-stream/libs/web/tracker/infrastructure/src/lib/graphql/automations.graphql
Josep Piguillem 8994590b54 feat: automation rules
Owners and admins can set rules of the kind «when a ticket is created,
moves, gets assigned, gets a comment or its pull request merges; if it is
of this type, priority, area or label; then move it, assign it, label it,
change its priority, comment or put it in the active sprint». Rules act as
TaskStream within the workflow, run once per event and trigger no others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:53:31 +02:00

48 lines
794 B
GraphQL

fragment AutomationFields on Automation {
id
name
active
runs
lastRunAt
lastError
trigger {
kind
status
}
conditions {
types
priorities
areas
label
}
action {
kind
value
}
createdBy {
...UserRefFields
}
}
query Automations($projectId: ID!) {
automations(projectId: $projectId) {
...AutomationFields
}
}
mutation CreateAutomation($input: CreateAutomationInput!) {
createAutomation(input: $input) {
...AutomationFields
}
}
mutation UpdateAutomation($automationId: ID!, $name: String, $active: Boolean) {
updateAutomation(automationId: $automationId, name: $name, active: $active) {
...AutomationFields
}
}
mutation DeleteAutomation($automationId: ID!) {
deleteAutomation(automationId: $automationId)
}