I would like to INSERT new values to custom field in JIRA DB, but when there is no value, I can not use UPDATE, because row doesn't exist.
Custom field type is "Select List (single choice)"
UPDATE jiraissue,customfieldvalue
SET customfieldvalue.datevalue = jiraissue.created
WHERE customfieldvalue.customfield = 'XXXXX' AND jiraissue.id = customfieldvalue.issue;
My goal is to INSERT new values to a custom filed with id 'XXXXX' for an Issue that has no value there.
correct me if I am missing anything here.