-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 9.4.14, 11.3.7
-
Component/s: JQL Search
-
9.04
-
1
-
Severity 3 - Minor
Issue Summary
If there are multiple contexts of a custom field and their options were the same, JQL shows those options multiple times by switching from Basic mode to Advanced mode.
Steps to Reproduce
- Create two projects (any type of projects are okay), "proj1" and "proj2"
- Create a "Select List (single choice)" custom field named "list1"
- Create two contexts for "list1" as follows
context 1:
project: proj1
options: opt1, opt2
context 2:
project: proj2
options: opt1, opt2 - Navigate to "Search for issues" screen, then run the JQL "project = proj1 and list1 in (opt1, opt2) and reporter = currentUser()" in Advanced mode
- Switch to Basic mode, then delete "Reporter: Current User" condition by clicking the 'x' icon
- Switch to Advanced mode again. Check the displayed JQL
Expected Results
Displayed JQL is "project = proj1" and list1 in (opt1, opt2)
Actual Results
Displayed JQL was "project = proj1" and list1 in (opt2, opt1, opt2, opt1)
If there were more contexts with the same options, the result was "list1 in (opt2, opt1, opt2, opt1, opt2, opt1, ...)"
If each context had the different options, it worked as expected.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available.