custom field validation in a listener

Mallela Narender Reddy February 7, 2012

Hi

How can i validate Text field customfield in my listener.My listener is written in java code and extending AbstractIssueEventListener

Regards
Naren

1 answer

1 vote
Jobin Kuruvilla [Adaptavist]
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.
February 7, 2012

You cannot validate the custom field in a listener because listener is a separate thread running after the event is processed. You should either do the validation in the custom field itself or do it in a workflow if possible. Another option is to do client side validation using Javascript but it depends on the requirement!

Mallela Narender Reddy February 8, 2012

ok thank u very much .

Suggest an answer

Log in or Sign up to answer