Reassign button customization for Smart Assessments

Simanta27
Tera Contributor

Hi Everyone,

I am currently working with Smart Assessments for BCM (Business continuity management) scope, and we have a requirement to customize the Reassign button on the Smart assessment to pull in a filtered list of users only.

I am not able to locate the backend configuration for this. Has anyone worked on a similar requirement?

Attaching screenshot for reference.

Thank you in advance. 🙂

Simanta27_0-1759833908766.png

 

7 REPLIES 7

Teju Chinthoti
ServiceNow Employee
ServiceNow Employee

Hi @Simanta27 ,

 

You can find the configuration in the scripted extension point "sn_smart_asmt.UserFilteringExtensionPoint"

 

Thanks,

Teju.

How do we use this? This seems to be a new functionality that even our development team is not familiar with.

Ok I think I got this figured out! Posting for others looking for a solution. So I clicked the "Create implementation" Related Links UI Action and created an extension instance in the GRC: Policy and Compliance scope. Here's the script 

 

var UserFilteringExtensionPoint = Class.create();
UserFilteringExtensionPoint.prototype = {
    initialize: function() {},
 
    handles: function(categoryGR) {
return true;
    },
 
    getReassignFilter: function(asmtInstGR) {
return {
additionalQuery: 'active=true^roles=sn_grc.business_user',
            overriddenTable: 'sys_user'
    },
 
    getCollaboratorFilter: function(asmtInstGR) {
return {
additionalQuery: 'active=true^roles=sn_grc.business_user',
            overriddenTable: 'sys_user'
};
    },
 
    type: 'UserFilteringExtensionPoint'
};

Shivansh Singh
Tera Contributor

@Simanta27 - Did you get any solution for this issue?