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

2 votes
Accepted answer

Hi Christopher,

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



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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,266 views 5 10
Read article

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