Hi, I cloned the Filter Result gadget xml file and replaced the /rest/gadget/1.0/issueTable/filter/validate call in the config section with my own REST plugin /rest/rich/1.0/duration/filter/validate. When I return errors for the filterId and num fields, they are displayed correctly but when i return an error for the columnName field no error message is dislayed. The error code is respected in that the gadget configuration page continues to be displayed but without the columnName error message it just looks like the gadget is ignoring the Save button,
I'm creating the erros for all 3 fields in exactly the same manner
errors.add(new ValidationError(FILTER_ID, "XYZZY"));
errors.add(new ValidationError(COLUMN_NAMES, "The last column must be a date field."));
errors.add(new ValidationError(NUM_FIELD, "QWERTY"));
I realize that these calls are deprecated but I also tried the newer methods with the same results.
Does anyone have any suggestions as to why the ColumnName error messages are not being displayed?
Thanks for your help,
Rich
Community moderators have prevented the ability to post new answers.
Hi Richard,
Please check the value of the COLUMN_NAMES constant. It should match the values you have in gadget JavaScript.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.