-
Bug
-
Resolution: Answered
-
High
-
None
-
33
-
Severity 3 - Minor
-
10
-
Issue Summary
If you create a custom field in a team-managed (formerly next-gen) Project and the name already exists in the company-managed (formerly classic) global custom fields, using the field in a JQL search will break, causing any existing filters using this field to fail.
Note - The bug also impacts the JQL search in add-ons - e.g Slack integration, Teams, etc.
Steps to Reproduce
- Create a custom field in the global system settings (company-managed (formerly classic))
- Create a custom field with the same name in a team-managed (formerly next-gen) Project
Expected Results
The JQL basic and advanced search should recognize these are 2 different fields and continue to function accordingly.
Actual Results
Any existing filters using the company-managed (formerly classic) version of the field will break and going forward you can only query this field by using a different syntax that includes the field type
Workaround
- Simply rename one of the custom fields so there are no duplicates
- Use a different syntax for the field reference in your JQL which includes the field type (eg. "Chocolate[Number]")
- Use the custom field id in the Advanced search instead of the custom field name
- is related to
-
JRACLOUD-74239 Creating a custom field with same name and context as another custom field leads to error in Advanced search
-
- Closed
-
-
JRACLOUD-75408 Searching for custom fields that share name using JQL does not include all of the fields.
-
- Closed
-
-
JRACLOUD-76482 Inaccurate JQL search results when using IS EMPTY operator with duplicate fields
-
- Closed
-
-
AUTO-161 Automation fails when it has two fields with the same name/type, showing the error "Found multiple fields with the same name and type:" and Additional fields contains invalid field(s) in 'update' or 'fields' section. <field_name>"
-
- Long Term Backlog
-
- relates to
-
JRACLOUD-76536 JQL "custom field" is EMPTY does not work when there are other custom fields with the same name
-
- Closed
-
Hi lellis2@atlassian.com, nilesh.patel, 02bba1c12beb,
Following up as we have recently received more feedback on this behaviour of the JQL search. I understand the frustration this may cause for some Jira instances; Jira allows duplicate naming of fields and to resolve problems arising from that we still recommend to follow the workarounds outlined in this ticket above.
I agree that changing duplicate field names would be unnecessarily tedious - my recommendation would be to add the [fields type] parameter in JQL searches moving forward (as shown in the ‘actual results’ section of this ticket). By doing this, the JQL search will automatically create a list of values that will include possible options from every field that has the same name and type.
I hope this makes sense and is of help to you. Please reach out to me if you have any other questions.
Jordan