I want to assign the ticket to the group and only to the people in specific group
Asked by Swarupa Bawaskar:

Hello All,  
I want to assign the ticket to the group first and from the group how can i assign to a single person. The assignee should be from the group itself. Can someone help me execute this requirement in JIRA Service Management?  
I appreciate any help you can provide.


Answers:
author: Nic Brough -Adaptavist-
body: There is an alternative to automating things. Building on [@Richard Scholtes](/t5/user/viewprofilepage/user-id/3879658) answer.

* Create the group picker as he said (let's call it the-responsible-team for clarity)
* Create a set of groups with the relevant possible assignees in them
* In the permission scheme, set the "can be assigned issues" permission to "custom field: the-responsible-team

This will mean the only selectable assignees will be the ones named in the group-picker field.

The downside of this is that it does not work during issue creation. For that though, there is no "assign to", so Richard's recommendation of removing the assignee field from the create screen is spot on. You'll end up with an issue assigned to the default assignee, and an assignee selection based on the group. If you do this, I recommend making the group-picker mandatory, or having someone responsible for triaging issues included as a possible assignee as well as the group.


author: Richard Scholtes
body: The "Assignee" field in JSM is a Person picker field, so it will always be showing all possible persons. So would a group picker field. The upside of that is, that you don't have to administrate those fields for new persons or those that left the company.

But there is a way to get this more specific, that would work if the group of people is not that big.

You could create a cascading select list field. In this you can enter teams and persons in a hierarchy depending on each other. But you will have to maintain the field manually, which means adding and deleting the users.

That's why it's not generally recommended to do that and most people would tell you to work with workflow options and the automation engine to get a special person as assignee depending on the content of the ticket.

comments: author: Swarupa Bawaskar
body: thanks [@Richard Scholtes](/t5/user/viewprofilepage/user-id/3879658)   

Actually, I want to restrict the options available in the assignee field. currently I am able to assignee the ticket to all the people in the project, but I want to restrict it to the group users only


author: Richard Scholtes
body: The field "Assignee" is a system field in Atlassian and therefore not changeable in any way.

The only way to put restrictions in place is to make it unchangeable by manual access and only change it via automations. But that would need you to have specified tasks for specified assignee and let an automation identify which assignee is needed.


author: Swarupa Bawaskar
body: can you guide us with the steps to restrict the manual changes on the assignee field.


author: Richard Scholtes
body: Sure, just make sure you have a view screen and an edit screen associated to your used issue type. Then remove the field from the edit screen and keep it on the view screen. Tada!  
Field is not changeable by user anymore, but can be changed by automations or transitions inside the workflow.


author: Nic Brough -Adaptavist-
body: You would need to change the permission scheme to say "no one but the automation user can assign issues to other people"


author: Nic Brough -Adaptavist-
body: Removing the assignee field from the screens still lets people click "assign to"


author: Haripriya
body: [@Swarupa Bawaskar](/t5/user/viewprofilepage/user-id/5418685)

For assigning issues to members of a specific group, I would recommend using [Workflow Properties](https://support.atlassian.com/jira-cloud-administration/docs/add-a-workflow-property/). You can use the group picker to add the group. However, to assign it to only members of a particular group under the Assignee field, we need to add a workflow property.

```
`key: jira.permission.assignable.group value: {{groupID}}`
```

We only support group IDs. Group names will cause errors.

How the workflow property looks:

![img 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/322256i3FC2D3F517FAF446/image-dimensions/479x166?v=v2 "img 1.png")

This is the error when I try to assign it to someone who is not in the group.

![img2.png](https://community.atlassian.com/t5/image/serverpage/image-id/322257iFFD7FBEAAC18D39F/image-dimensions/431x225?v=v2 "img2.png")

[Use Workflow Properties](https://support.atlassian.com/jira-cloud-administration/docs/use-workflow-properties/) - Reference article.

Cons - We can't fetch the group ID from a group picker field. We need to add a value while configuring the workflow so to dynamically populate the field based on the selected group is not directly possible.

![:warning:](https://pf-emoji-service--cdn.us-east-1.prod.public.atl-paas.net/atlassian/warning_64.png) This is added per status. If you want to enforce this restriction throughout the workflow, add the property to every status.


author: Mohamed Saad Taha
body: Hello [@Swarupa Bawaskar](/t5/user/viewprofilepage/user-id/5418685)

you can create group picker or custom filed ( drop down list ) and values will be the names for your assignment group but unfortunate the assignee filed will not depend on the above both options


author: Asha Goyal
body: Hello [@Swarupa Bawaskar](/t5/user/viewprofilepage/user-id/5418685)

As there could be only single assignee, you can create a Group user picker field where nultiple users can be added. For Assignee if that is fixed every time, you can apply post function to assignee the ticket to particular assignee.

Feel free to give more details in case I mis understood the issue and please Accept and Vote if it helps.

Thanks

comments: author: Swarupa Bawaskar
body: thanks [@Asha Goyal](/t5/user/viewprofilepage/user-id/4891126)   

Actually, I want to restrict the options available in the assignee field. currently I am able to assignee the ticket to all the people in the project, but I want to restrict it to the group users only


author: Asha Goyal
body: Hello [@Swarupa Bawaskar](/t5/user/viewprofilepage/user-id/5418685)

I hope you have enough hint to proceed on. Let me know if still any further questions.

Thanks


Tags: cloud

jira-service-management

jira-service-management-cloud