Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,573
Community Members
 
Community Events
185
Community Groups

Understanding scriptrunner scripted field: user picker (multiple users)

Hi,

I am trying to create a field in Jira, where one can edit a list of users, say customers that are affected by the issue. All pickable customers form a group in Jira. I wanted to use scriptrunner's User Picker (multiple users) scripted field to return only the group members prior to picking, but couldn't get this running: in the issue preview the field comes up only as a static list of the users returned by the script, with no possibility to pick further. My question: is this the expected behavior of the field and is this the wrong way to build a group limited user picker? According to the documentation this could be the case, but on the other hand one has to select a search template (multi user picker searcher), which indicates that the result of the script should still be searchable.

Jira has a group limited SINGLE user picker, but limited MULTI user picker has still suggestion status (see JRASERVER-36833). That’s why I try to find a solution using scriptrunner, which is available on the target instance.

Any help greatly appreciated.

Thanks

Christian

 

1 answer

0 votes
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 15, 2018

Hello @Christian Olschinka

Scripted fields designed just for display some calculated information.

But you can try to filter options with Scriptrunner Behaviours, method .setFieldOptions()

Hello Mark,

thank you for your suggestion, in the meantime we have solved the problem using an Elements Connect Field to build a limited multi user picker.

 

Regards

Christian

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events