Using the @GroupPicker annotation with the "multiple" option set to true returns a list of null values.
Note: This bug is specific to Behaviours and parameters with multiple values - the script below will work in all other contexts (assuming you don't use Behaviour specific methods like getFieldById() or setFormValue()).
- Create a new Behaviour Initialiser script using the sample code below:
- Once the method is added to the initialiser, a picker should appear as shown in the image below:-
- Save the Behaviour
- Create a new Issue for the project that the Behaviour has been mapped to.
The groups that have been selected from the picker should be displayed in the Summary field.
Selecting a group when configuring the Behaviour will result in the Summary field being set to something like: [null, null, null, null, null, null, null, null, null] when the Behaviour runs on an issue: