Add Related list button on Agent Workspace for HR case management

Community Alums
Not applicable

Hi All,

 

We have a requirement to add an "Add Jira Tickets" button to the Jira Tickets related list (relationship: Parent → HR Case) on the HR Case form.

When the "Add Jira Tickets" button is clicked, it should display a list of all Jira tickets that have the current HR Case set as their parent.

 

- Want the "Add Jira Tickets" button in the Jira Ticket Stubs related list on the HR Case form in Agent Workspace to allow users to link existing Jira records (instead of creating new ones), you'll need to configure a custom declarative action that opens a modal or list picker to select existing records.

 

Thank you.

10 REPLIES 10

@Community Alums Were you able to fix it?

If not, there is another way to add related list button

1. Navigate to Now Experience Framework -> Declarative Actions -> Related List Actions

2. Create a new action on jira ticket stub table

Shruti_0-1753278655859.png

Client script

function onClick() {


    var _strLink =
        '/sys_m2m_template.do?' +
        'sys_is_list=true&' +
        'sys_is_related_list=true&' +
        'sysparm_collectionID=' + g_form.getUniqueValue() + '&' +
        'sysparm_query=&' +
        'sysparm_referring_url=' + location.pathname + '&' +
        'sysparm_stack=no&' +
        'sys_target=u_jira_ticket_stub&' +
        'sysparm_m2m_ref=u_jira_ticket_stub&' +
        'sysparm_form_type=o2m&' +
        'sysparm_collection=sn_hr_core_case&' +
        'sysparm_collection_key=parent&' +
        'sysparm_collection_label=JIRA+Ticket+Stub&' +
        'sysparm_collection_related_field=&' +
        'sysparm_collection_related_file=u_jira_ticket_stub&';

    var win = top.window.open(_strLink, '_self');
    if (win) {
        win.focus();
    }
}