Skip to content

Commit 2d5e8f0

Browse files
authored
readme.md
1 parent b351500 commit 2d5e8f0

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

  • Client-Side Components/UI Actions/Bulk Assign Incidents via List Button
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Use Case
2+
In ServiceNow, the default Assign to Me action works only for single records.
3+
We need a list UI Action to allow users to select multiple incidents and assign them all to themselves in one click.
4+
## Implementation Approach
5+
Type: List UI Action
6+
Table: incident
7+
Condition: Active incidents only (optional)
8+
Action: Server-side script using GlideRecord to update selected incidents.
9+
## Code
10+
UI Action Configuration:
11+
Name: Bulk Assign to Me
12+
Table: Incident (incident)
13+
Action Type: List
14+
Form Button: Unchecked
15+
List Button: Checked
16+
Client: False (Server-side)
17+
## Steps to Configure in ServiceNow
18+
Navigate to System Definition → UI Actions.
19+
Click New and fill the fields as per above.
20+
Make List Button = True.
21+
Paste the script into the Script section.
22+
Add roles/conditions if required.
23+
Save and refresh the Incident list.
24+
## How to Use
25+
Go to the Incident list view.
26+
Check multiple incident records.
27+
Click Bulk Assign to Me.
28+
All selected incidents are now assigned to the current user.
29+
A confirmation message shows how many incidents were updated.
30+
## Notes / Best Practices
31+
This is server-side to ensure security and avoid client manipulation.
32+
Can be enhanced to assign to a specific group dynamically.
33+
Works for any list view with sys_ids selected.

0 commit comments

Comments
 (0)