Hello,
I wrote a plugin with two custom-fields, which where configure like this:
<customfield-type key="externalURL" name="ExternalURL" class="PATH_TO_MYFIELDS.ExternalURLField">
<description>
ExternalURL Field.
</description>
<resource type="velocity" name="view"
location="templates/views/j2j-view-url.vm" />
<resource type="velocity" name="edit"
location="templates/plugins/fields/edit/edit-readonly.vm" />
<resource type="velocity" name="xml"
location="templates/plugins/fields/xml/xml-basictext.vm" />
</customfield-type>
I set this CustomField inside the code of my plugin, the user not to have rights to do this. But I set the value, and the I edit the Issue the normal way that jira provides, and then the Value is gone, jira delete it in the DB, I think because it is not in the html-form. When I use for Edit the edit-basictext.vm it works and the value is not deleted. Ok so i make my own template and use the edit-basictext.vm script and set the input Field to disabled. But that didn't work?
What is that, why did Jira delete CustomFiled Values by editing the Issue?
regards Chris