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

Accepted Answer
2 votes

This should work:

lfSet("customfield_20901", "");

Yes, it works. Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,464 views 2 7
Join discussion

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