New Requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2024 08:04 PM
Hi All,
Can anyone give idea how to achieve below requirement.
Create button name as Assigned Me on Incident form this button should only display to selected assignment group on incident form means when user selects the assignment group from assignment group field and he belong to that group then button should be visible to user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2024 08:26 PM
Not sure what is your exact use case. But if a user wants to see how many records assigned to him or her, go to application Navigator search for my work and can see.
This UI Action will be a customization.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2024 09:13 PM
Hi @Harshal_Patil,
Create a UI Action 'Assign Me' and make it visible on the form.
Give condition (when to display the button) --- check if you belong to the assignment group or not (by using isMemberOf())
Syntax: gs.getUser().isMemberOf('<assignment_group>')
Mark the response correct and helpful if the answer assisted your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2024 05:37 AM - edited 08-04-2024 05:39 AM
step 1: Create UI Action " Assign Me"
step 2: check whether you are part of assignment group or not
gs.getUserID().isMemberOf('current.assignment_group')
step 3: after it is visible you need to perform click action and assign to you you can use below script