Occasional Error with SIL User Picker

I have an SIL User Picker set up with an SIL script to filter the list of users to select for the field. Setting the field works just fine from the edit screen and does not produce any errors. There have been reports from some users that when they go back to the edit screen for a JIRA issue and edit 1 or more fields then an error gets thrown under the SIL User Picker when they click the Update button. The error states "User 'someuser' is not a valid selection." where someuser is any user that is selected for that field.

The filtering still works since the auto-suggestions still work after typing in a name, but the issue won't update unless you remove whatever value was in that field. If you change the user, the error message will just update to that new user when you click the Update button again. Users are then forced to remove the user from the field and edit the issue again to add the user back in to that field that was in there previously.

This error is inconsistent and I am not able to reproduce it every time, but if I keep editing an issue the error will eventually get thrown if the SIL User Picker has a value in it. The inconsistency of the issue is really what is baffling. There also is no error thrown in the atlassian log when I encounter this issue. Our current JIRA version is 6.0.7 and we are using JJupin 2.6.8 along with User Group Picker 2.6.3 and User Group Picker PRO 1.6.4.

1 answer

1 accepted

Hi Christopher,

I've created an internal issue for this and will keep you updated with the progress.

Regards,

Florin.

Hi Christopher, We're having a hard time reproducing the issue. Could you provide the script used to generate the user list? Thanks!

Here is the script used for the SIL User Picker: function getUsers(string [] szGroups) { string [] szUsers; for(string szGroup in szGroups) { string [] szCurrentGroup; szCurrentGroup = addElement(szCurrentGroup, szGroup); for(string szUser in usersInGroups(szCurrentGroup)) { szUsers = addElementIfNotExist(szUsers, szUser); } } if(arraySize(szUsers) > 0) { return szUsers; } else { string [] szDefaultGroups = {"jira-users"}; return usersInGroups(szDefaultGroups); } } string [] szProjectProperties = admProjectProperties(project); string szSearchGroup = szProjectProperties["name"] + " (" + szProjectProperties["key"] + ") Users"; string [] szGroups = szSearchGroup; return getUsers(szGroups);

Hi Christopher, This issue should be resolved with the 3.0.0 versions we just published today.

Great! Thank you so much for your support!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,293 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot