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

Accepted Answer
2 votes

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

43 views 0 2
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