I need set priority of incident category and sub category

Saranya K
Tera Contributor

Hi all,

 

I need to set priority of incident when  category is HRMS and sub category is anyone of and i tried below not working

and i have in one more onchange script on category it worked as expected but when i choose subcategory the values get wiped.

can anyone help me on this.

 

SaranyaK_0-1734939861998.png

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Saranya K 

remember subcategory is dependent on category.

share your complete code.

why not handle this via before insert/update BR rather than 2 onChange client scripts?

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

 

I have shared full script. I have created only one onchange client script on subcategory field

Can you share me script Business rule .

 

 

@Saranya K 

it should be similar to client script.

please start from your side and let us know if stuck somewhere.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Harish Bainsla
Kilo Patron
Kilo Patron

Hi @Saranya K As you know category and sub category  are by default dependent on category so instead of script you can  do you can define category and sub category so that based on category sub category will work