Hi All, is it possible to populate assignee field to only assign the issue based on the group that is on the request using scriptrunner? example is Group ABC is the chosen group and it has 1,2,3,4,5 as users. only 1,2,3,4,5 users can be assigned . if you have sample code to start with, that would be great. thanks
If you are creating and using a scriptrunner calculated custom field for Assignee, then it is possible to write such a script.
Scripts can not change behaviour of System Assignee field.
However in Project Management for the project , you can set Assignable user permission.
Whatever users have this permission only they can be selected as Assignee.
You can start from here :
Create a scripted field.
Select type as Single User Select.
Then experiment with scripts like below :
You don't have to use scriptrunner, you can simply set the step property in the workflow to be
jira.permission.assignable.group and then the name of the group
For more info see:
Hope that helps
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events