Trying to use a variable in the trigger condition for a Catalog Task record throws an error


Description

If you try to use a variable in the trigger condition for a Catalog Task record (sc_task) then the condition will not save and the console will show the error:

angular_includes_1.4.jsx?v=03-02-2020_2243:109 ReferenceError: $j is not defined
at Comparison.toQueryString (js_includes_filter_widget.jsx?v=03-02-2020_2243&lp=Tue_Jan_07_19_14_40_PST_2020&c=5_55:3539)
at js_includes_filter_widget.jsx?v=03-02-2020_2243&lp=Tue_Jan_07_19_14_40_PST_2020&c=5_55:967
at Array.filter (<anonymous>)
at js_includes_filter_widget.jsx?v=03-02-2020_2243&lp=Tue_Jan_07_19_14_40_PST_2020&c=5_55:966
at Array.forEach (<anonymous>)
at js_includes_filter_widget.jsx?v=03-02-2020_2243&lp=Tue_Jan_07_19_14_40_PST_2020&c=5_55:965
at Array.forEach (<anonymous>)
at js_includes_filter_widget.jsx?v=03-02-2020_2243&lp=Tue_Jan_07_19_14_40_PST_2020&c=5_55:964
at Array.forEach (<anonymous>)
at Object.filterEmptyComparisonsFromGlideQuery (js_includes_filter_widget.jsx?v=03-02-2020_2243&lp=Tue_Jan_07_19_14_40_PST_2020&c=5_55:963)

Cause

Currently using variables from a Catalog Task (sc_task) is not supported.

Additional Information

There are enhancement requests on the idea portal that can be voted on to increase the change this will get implemented.