- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 02:47 AM
‘Assign to Me’ button shows up on all New tickets right now. Clicking on it simply assigns the Incident to the current user irrespective of the Assignment group selected on the ticket
We should either -
i. Not show this button if the current user is not a part of the ticket’s assignment group.
ii. Give an error message letting the user know that the ticket cannot be assigned to them as they’re not a part of the group.
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 03:17 AM
Hello,
In the UI action "Assign to me", just add the below condition then ti will only show if the user is a part of the group:-
gs.getUser().isMemberOf(current.assignment_group.toString())
Please mark answer correct/helpful based on Impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 03:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 03:45 AM
When I updated the UI action the "assigned to me" button got hidden because I am not in that assignment group and your condition is working fine.
So I impersonated the user who have access to that assignment group.
But the problem here is the user doesn't have access to this record.
so what I want is to add conditions like Giving an error message letting the user know that the ticket cannot be assigned to them as they’re not a part of the group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 04:05 AM
Hello,
Just a question if the button is hidden then we don't even come to the second option right? as if they will not see the button they would not really require the error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 04:10 AM
Your condition was working fine.
But as per my requirements, I have to show the error message to the user.