New Requirement

Harshal_Patil
Tera Contributor

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.

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Harshal_Patil 

 

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]

****************************************************************************************************************

Rupanjani
Giga Guru

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.

Ranjith95
Tera Contributor

Hi @Harshal_Patil 

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

function performAction() {
current.assigned_to = gs.getUserID();
current.update(); // use it to update with user 
gs.addInfoMessage('incident assigned to you');
}
 
Mark my response correct and helpful if my answer helped you in resolving your issue.