...
This script listens for a change to customfield_10712 and fires thr script runs the SelectAllInList.sil script when a change is detected.
Code Block |
---|
lfWatch("customfield_10712", {"customfield_10712"}, "Screen_Listeners/SelectAllInList.sil", "change"); |
...
Script
This script is fired run from the listener script SelectAllInList_watch.sil listener script and selects all items in a list if the 'Select All' item is selected.
Code Block |
---|
string [] c = argv["customfield_10712"]; string [] colors = {"Black", "Blue", "Brown", "Green", "Orange", "Red", "Yellow", "White"}; if(arrayElementExists(c, "Select All")) { lfSet("customfield_10712" , colors); } |