wrike: tree: passing event as a parameter to set the global variable