I've manual inserted records in table customfieldvalue using sql.
for id value used construction "select max(id) from .."
db - postgresql
After inserting if i try to change some values in customfields in jira issues using jira web -interface, i get an error:
(SQL Exception while executing the following:INSERT INTO public.customfieldvalue (ID, ISSUE, CUSTOMFIELD, UPDATED, PARENTKEY, STRINGVALUE, NUMBERVALUE, TEXTVALUE, DATEVALUE, VALUETYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: duplicate key value violates unique constraint "pk_customfieldvalue" Detail: Key (id)=(17600) already exists.))
It seems, jira have counter or sequence for it's table 'customfieldvalue', but how to set new actual correct value for this counter/sequence? How to get the name for this sequence?