Custom Field Value is empty when the issue is closed

Hi,

I am trying to develop a plugin for JIRA S/W. I want to check why the custom field value is empty when the issue is closed/resolved. How to persist the value even if the issue is closed?

Thanks
Chaitanya