Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Gadget with columnName errors not displaying error messages

Rich Scire July 2, 2015

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2015

Hi Richard,

Please check the value of the COLUMN_NAMES constant. It should match the values you have in gadget JavaScript.

TAGS
AUG Leaders

Atlassian Community Events