Not able to fill condition fields through ATF

Shaqeel
Mega Sage
Mega Sage

Hi All,

 

My requirement is to set the condition fields.

Eg:  Status is In Service.

 

I have got this KB ARTICLE 

 

 

 

Here is the form:

Shaqeel_0-1718707909785.png

here I need to set the condition as shown.

 

I am using following script:

 

Shaqeel_0-1718708588191.png

 

 

 

The test fails with following summary:

Test failed due to JavaScript error executing step:

Shaqeel_0-1718708474247.png

 

 

 

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel
6 REPLIES 6

Mark Manders
Mega Patron

It doesn't find your table. Are you sure you haven't made any spelling mistakes in there? Does the same happen if you remove the brackets?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Chidanand_VK
Mega Guru

Hi @Shaqeel

I think we can add conditions using Run server side script.

Can u give the correct table? I am trying the tables present in the screenshot but not able to get any. May be this is customized table in your instance.

 

If you have any similar OOTB tables, pls let me know.

FYI....I was trying to add a Filter condition for 'Business Rules' under 'When to run' section tab using the below script and it is working fine.

var gr = new GlideRecord("sys_script");
gr.get('7f95d2918343121045931429feaad3f3');
gr.setValue('filter_condition', 'category=software^EQ');
gr.update();
 
If my answer helped you in any way, please mark it as helpful or correct.
 
Regards,
Chidanand Kalmani