Itsm

Snowl13052025
Tera Contributor

I want a popup on the incident form if I try to resolve the incident while the associated alert is still open and help me the script and solution.

 

thanks in advance 

1 ACCEPTED SOLUTION

Bhimashankar H
Mega Sage

Hi @Snowl13052025 ,

 

I hope you saw my reply.

----------------------------------------------------------------------------------------
If my answer helps you or resolves your query, please consider marking as 'Accept As Solution'. So future readers with similar questions can find it easily. Your coordination will help community to grow stronger!.
----------------------------------------------------------------------------------------

Thank you.
Bhimashankar

View solution in original post

11 REPLIES 11

Pranesh072
Mega Sage
Mega Sage

Create a onchange client script with alert script. 

Shraddha Kadam
Mega Sage

Hello @Snowl13052025 ,

 

Create onChange client script on the incident table and use below code. Ensure field value is "State"

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }
    if (newValue == '6') { // Assuming '6' is the value for 'Resolved' state
        alert('You are resolve this incident.');
    }
}
If my response was helpful, please mark it as correct and helpful.
Thank you.

Where it’s checking the alert table ? 

We don't have an alert table. Once you have updated the state to resolve then, you will see the pop-up.

If my response was helpful, please mark it as correct and helpful.
Thank you.