Playbook Conditions : How to Combine Multiple Conditions in One Task

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Playbook Conditions : How to Combine Multiple Conditions in One Task

L0 Member

Hi, I am new to XSOAR and I was wondering if there was a conventional way of arranging similar conditions. For example, I am getting a ticket in task 1 and I want the following task (task 2) to give a value to a field called ticket.status. conceptually, the condition would look like this:

IF ticket.severity == 'Critical' then ticket.status = 1

OR if ticket.severity == 'Medium' then ticket.status = 2

OR if ticket.severity == 'Low' then ticket.status = 3

 

In a programming language we can combine multiple conditions into 1 statement. Is there a way to combine multiple conditions like this into one task? 

1 REPLY 1

L4 Transporter

Hi @NobodyNose2567 ,

 

you can achieve that using a conditional task. First, you need to specify your conditions which follow the path accordingly. Then for each condition, you can select Set Task to set the status.

gyldz_0-1701765676416.png

gyldz_1-1701765742393.png

gyldz_2-1701765758308.png

 

 

  • 891 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!