Business Rule to update the sc_task sate based on conditions

Bindhu1
Tera Contributor

Hi , 
I have below requirement , where i need your help(I tried but did not work , so seeking help here):

Process One: Create a BR 1. 

IF

Requested for's Company does contain "INDIA"

&

Item requested is either
ABC  or  XYZ

&

Short Description says "Software License Check"

THEN

Change Catalogue Task state to Closed Incomplete

-------------------------------------------------------------------------

Process Two Create a BR 2.

IF

Requested for's Company does contain "INDIA"

&

Software requested is either

ABC  or  XYZ

&

Catalogue state changes to Closed Incomplete

THEN

Change the Catalogue state to Work In Progress

Change the Assignment Group to "PQR GROUP"
----------------------------------------------------------------------

 


Thanks 

1 ACCEPTED SOLUTION

Since the test/requirement values won't change after a Catalog Task is created, I would change this BR to run before Insert only, then you can eliminate the update - line 5 in the script.  The values of the State field are numbers, so use 3 instead of 'Closed Complete'.  In the Filter Conditions 'Next action' should be 'Short Description', unless you have relabeled this field in your environment, and based on your requirements the last condition should be 'does not contain'. 

View solution in original post

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

Show screenshots and/or insert code (</>) of the scripts in your attempts, and we'll see where it went wrong.

Thanks for replying here it is for BR 1.

Bindhu1_1-1723211122408.png

 

Bindhu1_0-1723211016075.png

This logic is not working even for one condition ,i.e, Request item.item is ABC

Since the test/requirement values won't change after a Catalog Task is created, I would change this BR to run before Insert only, then you can eliminate the update - line 5 in the script.  The values of the State field are numbers, so use 3 instead of 'Closed Complete'.  In the Filter Conditions 'Next action' should be 'Short Description', unless you have relabeled this field in your environment, and based on your requirements the last condition should be 'does not contain'.