We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

In SOW, Only from EPIC and Theme list hide collaborate section.

shrutijibhekar
Tera Contributor

Hello @all ,

In SOW, I have created new list 'Epic' and 'Theme' only for this two list I want to hide Collaborate section.

In SOW, Epic and Theme have created new record 'Test' after saving records, collaborate section is visible, I want to hide it.

If anyone have worked on this or have any information, if it is possible, please let me know, it will be helpful.

Thank you!

Epic

shrutijibhekar_0-1778048217896.png

 

Theme

shrutijibhekar_1-1778048299437.png

 

 

1 REPLY 1

Vishal Jaswal
Tera Sage

Hello @shrutijibhekar 

Table Name: sys_ux_screen.do
Sys_id: 5b6751eb43b62110361dff53e9b8f2b1

Active: False -> This will hide it from all forms (hide it from the side floating panel).

Scroll down to UX Screen Conditions and open the only record (table name :sys_ux_screen_condition)

Modify the script to include your tables as shown below with an example of incident and problem:

(function showCollaborateTab(params) {
    var table = params.data.table;
    var sysId = params.data.sysId;

    // Hide Collaborate tab on Incident
    if (table === 'incident' || table === 'problem') {
        return false;
    }

    if ((sysId === '-1') || gs.nil(table) || gs.nil(sysId)) {
        return false;
    }

    var recordGr = new GlideRecord(table);
    if (recordGr.get(sysId) && recordGr.canWrite()) {
        var utils = new sn_sow_collab.SowCollabUtils();
        return utils.canViewCalls(table, sysId) || utils.canViewChats(table, sysId);
    }

    return false;
})(inputProperties);



Validation Results:
Can be seen on CR form:

VishalJaswal_0-1778188060025.png

Can't be seen in Incident and problem forms:

VishalJaswal_1-1778188084093.png

VishalJaswal_2-1778188110528.png

 






Hope that helps!