Assignment group

LJ_23
Tera Contributor

Hi,

I have two applications in a dropdown menu. The first one has the correct assignment groups, but the second one doesn’t. How can I make sure the second application has the same assignment groups as the first one for both “Yes” and “No” conditions?

 

 

The UI policy uses templates for both conditions, and the templates show the correct assignment groups. However, when I create incidents for the second application, the assignment groups are different. What do I need to do?

2 REPLIES 2

bammar
Kilo Sage
Kilo Sage

There may be something else conflicting, like an Assignment rule or a business rule and these can be related to another field, for instance there may be an assignment rule that says if Subcategory is Phone- assign to Telephone group, so an unrelated field and unrelated setting

Community Alums
Not applicable

Hi @LJ_23 ,

To ensure the second application in the dropdown menu has the same assignment groups as the first, verify that the templates used in the UI policy for both "Yes" and "No" conditions have the correct assignment groups configured. If the issue persists, use a client script or business rule to dynamically set the assignment group when the second application is selected:

Client Script (onChange):

function onChange(control, oldValue, newValue) {
    if (newValue === 'Second Application') {
        g_form.setValue('assignment_group', 'GROUP_SYS_ID_OF_FIRST_APPLICATION');
    }
}

 

Business Rule (on Insert/Update):

if (current.application == 'Second Application') {
    current.assignment_group = 'GROUP_SYS_ID_OF_FIRST_APPLICATION';
}

 

Thank you @LJ_23 ...!