I’ve created a Scripted Field named “Risks” of type Multiple Issue(s) Picker. It has JQL “issuetype = Risk”.
When I click on the field, the initial list of issues (custom issue type Risk) is displayed and first issue is highlighted (not selected, just HIGHLIGHTED !). So far, so good.
There are 2 possible scenarios:
- If I select issues from displayed initial list, only the chosen one(s) are added to the field. That works as expected.
- Now the problem - instead of selecting from initial list, I start typing in the field to restrict displayed issues. As a result, I get updated issue list to select from. When I select an issue from updated list, ScriptRunner adds my selected issue but ALSO adds HIGHLIGHTED issue from initial list (mentioned above).
So, let’s say my initial list looks like this:
ABC-10 (highlighted !)
ABC-20
…
ABC-100
Then I type in something to get restricted list of issue:
ABC-40
ABC-50
If I select ABC-40 or ABC-50, also ABC-10 will be added to the field.
Any idea how to get rid of ABC-10 from being added even if it has NOT been selected?