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

Community Alums
Not applicable

I have changed the "When to Run" to "before" update or insert instead of after and that seemed to work. But I still don't follow the logic behind it 😅

@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.

 

@Community Alums 

 

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