Set state to Work in progress when assigned to is not empty (Catalog Task)

Community Alums
Not applicable

I have created a BR so that the state of the catalog task changes to " Work in Progress" when the assigned to field is not empty, but it is not working. In the attachments you can see the logic I applied in conditions and script.
Can you please help me figure this out? 
I have tried with script and without, but with no success.

 

Note: I have also tried to change this line 7 in the script to:
current.setValue('state', 2);

1 ACCEPTED SOLUTION

@Community Alums 

 

It should work in both before/after (insert/update) BRs as I have tried both the ways and it worked for me,

There might be some other logic comes into the picture at your end as I have tried in my PDI. Also you can try below conditions:

 

PrinceArora_0-1701260630920.png

 

As per your conditions let say some ticket is in pending-onHold state and someone has updated the assigned to in that case it will come back to in progress again but the above mentioned condition only works when assigned comes from empty to some person

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

 

View solution in original post

7 REPLIES 7

Prince Arora
Tera Sage
Tera Sage

@Community Alums 

 

Can you please comment your code from advanced section and just go ahead with this only

 

PrinceArora_0-1701258734062.png

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

 

Community Alums
Not applicable

Hello @Prince Arora ,
I have already tried that before putting the script into action and did not work.
Also tried after the script to remove the actions and also with the actions applied and did not work as well.

@Community Alums 

 

I have tried in my PDI and it worked for me 

I have just configured first two screenshots

 

Please test it by creating a new incidents where assigned_to field is empty first

Community Alums
Not applicable

I tried it and if "When to Run" was set to "after" and not "before" it did not work.