-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Hi,
is it possible to insert into the table "customfieldoption" via SQL-Insert-Statements like shown below?
Most of the fields seem to be transparent, but how is the ID for a new entry generated?Is it just the actual highest ID plus one or what does it depend on?
I got the basic informations in the first 4 lines and then generated two new lines for OptionValue10 and OptionValue11:
| Last ID | 22602 | ||
| Customfield | 22100 | ||
| Customfield_config | 24400 | ||
| Last Sequence of Option | 13 | ||
| CustomValues | ID | Sequence | SQL-Statement |
| OptionValue10 | 22603 | 14 | INSERT INTO jira.customfieldoption (id,CUSTOMFIELD, CUSTOMFIELDCONFIG, PARENTOPTIONID, `SEQUENCE`, customvalue, optiontype, disabled) VALUES(22603,22100, 24400, NULL, 14, 'OptionValue10', NULL, 'N'); |
| OptionValue11 | 22604 | 15 | INSERT INTO jira.customfieldoption (id,CUSTOMFIELD, CUSTOMFIELDCONFIG, PARENTOPTIONID, `SEQUENCE`, customvalue, optiontype, disabled) VALUES(22604,22100, 24400, NULL, 15, 'OptionValue11', NULL, 'N'); |