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

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, 

 

1 answer

1 accepted

2 votes
Accepted answer

This should work:

lfSet("customfield_20901", "");

Yes, it works. Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,091 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you