Change tasks are getting closed when change request is cancelled

Manohararuna
Tera Contributor

Hello Everyone,

 

      My requirement is there is Timezone field on User profile form, i want to same field on the Incident form under Priority.

For this i want solution.

 

Thanks,

Manohararuna.

2 ACCEPTED SOLUTIONS

Ehab Pilloor
Mega Sage

Hi @Manohararuna,

 

You can use before insert business rule and condition would be Caller is not empty.

Business Rule:

if (current.caller_id) {
    var user = new GlideRecord('sys_user');
    if (user.get(current.caller_id)) {
        current.u_time_zone = user.time_zone; //use name for u_time_zone field as added in incident table
    }
}

 

Regards,

Ehab Pilloor

View solution in original post

Masthan Sharif
Tera Guru

Hi @Manohararuna ,
Hope you're doing well!

Which user's timezone would you like to see on incident form?

You need to pick a field a from Incident form that references to sys_user table

If you want to show the timezone of Caller, you can add it from Form Layout by dot walking from Caller to Timezone(on caller's user record), please refer to attached screenshots, thank you!

Best Regards,

Sharif

 

View solution in original post

4 REPLIES 4

Ehab Pilloor
Mega Sage

Hi @Manohararuna,

 

You can use before insert business rule and condition would be Caller is not empty.

Business Rule:

if (current.caller_id) {
    var user = new GlideRecord('sys_user');
    if (user.get(current.caller_id)) {
        current.u_time_zone = user.time_zone; //use name for u_time_zone field as added in incident table
    }
}

 

Regards,

Ehab Pilloor

Masthan Sharif
Tera Guru

Hi @Manohararuna ,
Hope you're doing well!

Which user's timezone would you like to see on incident form?

You need to pick a field a from Incident form that references to sys_user table

If you want to show the timezone of Caller, you can add it from Form Layout by dot walking from Caller to Timezone(on caller's user record), please refer to attached screenshots, thank you!

Best Regards,

Sharif

 

No , I just want to Timezone field , actually i have three fields timezone, Time , Date & Time

Tiemzone fields having the Canada/Atlantic, Europe/Aemsterdam like option having 

 

Date& Time : any time chosen from the dropdowns above should be converted to IST on a separate space and 12 AM /12 PM converted not like 24 hours convertion.

 

Regards.

Manohararuna

this is one more condition ,

A duplicate Incident checkbox, if selected a mandatory drop down referring to any INC created in PROD which can be selected. No manual entry. NO SLA or SURVEY should trigger if duplicate checkbox is marked and reference INC is selected.