Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tasks API to incidents and tasks action to automationRules #21542

Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@
"description": "The type of the automation rule action.",
"enum": [
"ModifyProperties",
"RunPlaybook"
"RunPlaybook",
"AddIncidentTask"
],
"type": "string",
"example": "ModifyProperties",
Expand All @@ -299,10 +300,30 @@
{
"value": "RunPlaybook",
"description": "Run a playbook on an object"
},
{
"value": "AddIncidentTask",
"description": "Add a task to an incident object"
}
]
}
},
"AddIncidentTaskActionProperties": {
"required": [
"title"
],
"type": "object",
"properties": {
"title": {
"description": "The title of the task.",
"type": "string"
},
"description": {
"description": "The description of the task.",
"type": "string"
}
}
},
"AutomationRule": {
"required": [
"properties"
Expand Down Expand Up @@ -339,6 +360,23 @@
},
"discriminator": "actionType"
},
"AutomationRuleAddIncidentTaskAction": {
"description": "Describes an automation rule action to add a task to an incident",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AutomationRuleAction"
}
],
"properties": {
"actionConfiguration": {
"type": "object",
"$ref": "#/definitions/AddIncidentTaskActionProperties"
}
},
"x-ms-discriminator-value": "AddIncidentTask",
"x-ms-client-flatten": true
},
"AutomationRuleBooleanCondition": {
"type": "object",
"properties": {
Expand Down
Loading