Assign to me button on incident sow form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 08:19 PM
i want to edit and put some conditions to the assign to me button present in incident sow form view.
I could not find where this button is present.
i tried to find this button in the declarative form actions but could not where is this present?
@Ankur Bawiskar any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 08:27 PM
it's normal UI action which is shown in workspace
You can update the UI action condition but remember this will impact workspace + native both
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 08:33 PM
Thanks for your information Ankur,
i want to show the button in 3 conditions
also this assign to me button also is in the list also inside the dit button i want to apply the visibility condition what i provided in both the places any idea what all things i need to follow as a best practice to achieve this?
Regards,
Debasis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 08:45 PM
check the condition field in both and if nothing is there then add, if something is already there then enhance your logic
something like this you can add
(current.state == 1 || current.state == 2) && gs.getUser().isMemberOf(current.assignment_group) && current.assigned_to != gs.getUserID()
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 10:07 PM
Hello @Ankur Bawiskar ,
I checked the out of box new global.IncidentUtils().canAssignToMe(current); already checks the
gs.getUser().isMemberOf(current.assignment_group) && current.assigned_to != gs.getUserID()
i just wanted to add the state condition and added
(current.state == 1 || current.state == 2) && new global.IncidentUtils().canAssignToMe(current);
but no luck after that i removed everything and just tried out to show it in current.state ==1 only showing in new state still no luck>
