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

This should work:

lfSet("customfield_20901", "");

Yes, it works. Thanks

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

152 views 1 17
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