SIL: How can I set to null a customfield using SIL Language?

Begoña Bonet January 28, 2016

I'm using SIL and I have to clear the field A (customfield_20901) when the customfield B (customfielc_20900) is changed. Thus, I've an script with:

#{Técnico Asignado Servicio}="";                 // A Single Text customfield (customfield_20901)

This script is launched by:

lfWatch("customfield_20900", {"customfield_20900"}, "/datos_apl/jira/silprograms/proyectos_soporte/busqueda_tecnicosoporte/limpia_tecnicosoporte.sil");

After that, I can see the field in the view screen (it means that the customfield has value, perhaps a blank). How can I become null this field? I've tried with:

#{Técnico Asignado Servicio}=null;

But an error appears when I check the sintax, 

 

2 answers

1 accepted

2 votes
Answer accepted
Alexandra Topoloaga
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2016

This should work:

lfSet("customfield_20901", "");
Begoña Bonet January 28, 2016

Yes, it works. Thanks

0 votes
Sami Shaik February 23, 2020

How can we set groups in MULTIPLE GROUP PICKERS based on the value selected in "Multi Select" fields?

Suggest an answer

Log in or Sign up to answer