The CreatorCon Call for Content is officially open! Get started here.

incident opent by will populate Assigned To

yardenKrispel
Tera Contributor

Hey! I need help
I want when saving a new incident (new), if the fault is not marked as a call log that would be false (this is a checkbox I created) then to automatically populate the Assign to with whoever created the fault. I tried everything and it doesn't work now I tried client script-onSumbit that its not work!

 

 

yardenKrispel_0-1706452231055.png

 

11 REPLIES 11

Priyanka_786
Tera Guru
Tera Guru

HI @yardenKrispel ,

 

Have you debugged if condition is satisfied or not by putting alert. Syntax wise code looks right.

I would rather suggest instead of client script to use business rule in this case with following steps.

1. Create new business rule on incident table- check advanced checkbox.

2. In when to run section select when as before and check the insert checkbox.

3. In filter condition, select your field conditions as per your requirement.

3. Go to script section- use below line of script.

     current.setValue("assigned_to", gs.getUserID);
4. Save the business rule and test.
Hope it helps. Kindly mark my response as helpful/accepted if it helps.
Regards,
Priyanka Salunke
 

thank you' bur its not work :

yardenKrispel_0-1706456100161.png

 

 

and this busniess ruls

yardenKrispel_1-1706456132644.png

 

yardenKrispel_2-1706456151593.png

 yoi can help mw fix these?

@yardenKrispel ,

 Please add log in this business rule to check if it's called or not at first place  before line no2 in script.

This is regular incident form right?

Regards,

Priyanka Salunke

 

What appears is first name and last name

yardenKrispel_0-1706460445074.png