-
Bug
-
Resolution: Duplicate
-
Low
-
9.7.1
-
None
-
9.07
-
1
-
Severity 2 - Major
-
Issue Summary
When a custom field's configuration context is edited, the operation fails if the field configuration scheme ID and field configuration ID are not identical.
This is reproducible on Data Center: yes
Steps to Reproduce
- Set up a new instance of Jira.
- Run the following SQL command on the Jira database to desynchronise the field configuration scheme and field configuration IDs:
UPDATE sequence_value_item SET seq_id = seq_id+100 WHERE seq_name = 'FieldConfiguration';
- Restart Jira.
- Navigate to Administration (⚙) > Issues > Custom Fields.
- Create a new Select List (single choice) custom field named Test Custom Field, and apply it to all projects.
- Run the following read-only SQL query and observe the results:
SELECT * FROM fieldconfigschemeissuetype ORDER BY id DESC LIMIT 1;
- The results should be similar to the example results below. Note that the fieldconfigscheme and fieldconfiguration IDs are different:
id | issuetype | fieldconfigscheme | fieldconfiguration -------+-----------+-------------------+-------------------- 10600 | | 10500 | 10600 (1 row)
- The results should be similar to the example results below. Note that the fieldconfigscheme and fieldconfiguration IDs are different:
- Select ... > Configure for the newly created Test Custom Field, then select Edit Configuration.
- Change Add projects to this context from All projects in Jira (global context) to Selected projects, and drag a project from Available projects to Selected projects.
- Select Save and generate a HAR file by following the steps in our knowledge base article Generating HAR files and analyzing web requests.
Expected Results
The configuration change should succeed.
Actual Results
The configuration change fails with a HTTP 500 error.
Reviewing the HAR file shows that the parameters sent with the POST call to /secure/admin/ManageConfigurationScheme.jspa have the same value for fieldConfigSchemeId and fieldConfigIds, which means the wrong value was sent for fieldConfigIds:
"params": [ [...] { "name": "fieldConfigSchemeId", "value": "10500" }, { "name": "fieldConfigIds", "value": "10500" },
Note that if a field configuration belonging to another custom field matches the incorrect ID in fieldConfigIds above, Jira will mix up the two fields. This may cause the wrong options to be displayed when subsequently configuring the field, and may also cause the wrong field to appear in workflow screens.
Workaround
Currently there is no known workaround for this behaviour. A workaround will be added here when available.
Other Notes
This issue is similar to the following previous issues (but in this case, a different part of Jira's functionality is affected):
JRASERVER-11443: In certain data the custom field configuration links are wrongJRASERVER-36629: Project Import does not import Custom Field Select Option values- JRASERVER-63226: Project Import blocked with an error indicating missing custom field option values for Select List custom field types
JRASERVER-65734: JIRA incorrectly uses fieldconfigscheme ID instead of fieldconfiguration ID to look up Custom Field Options
- duplicates
-
JRASERVER-75919 Jira custom field context broken after upgrade to 9.7.0+
-
- Closed
-