In the Edit ticket screen I've tried to change the Ok button to check the category.
But the variable is showing "1" no matter what category I choose on the ticket. (log("Kategori " + category + "\n");)
I use this to get the value for the category:
String category = "";
category = t.getValue("category");
(The purpose is to exclude som extra fields from validation on some categories)