change_case_stage
Related Concepts: Case Manipulation
This function sets case’s stage to a specific chosen stage. Stage’s name must be one of the values specified in the Siemplify settings table – case stages.
siemplify.change_case_stage(stage=stage_to_change_to)
Parameters
Param Name | Param Type | Possible Values | Comments | Mandatory Parameter |
---|---|---|---|---|
stage | string | Any string from the case stages table | Stage should match exactly the string that is defined in the case stages table | Yes |
case_id | string | 12345 | Unique case identifier. | No |
alert_identifier | string | 12345 | Unique alert identifier. | No |
Return Type
NoneType
Example:
Sample Code
from SiemplifyAction import SiemplifyAction
siemplify = SiemplifyAction()
stage_to_change_to = "Investigation"
siemplify.change_case_stage(stage=stage_to_change_to)
Result Behavior
The case state is changed to "investigation".
Result Value
None
NOTE: Case Stage is a case’s property! Be mindful when changing it from a playbook/alert’s perspective.