How to create a Time Zone field in cmdb form

Intakhab Khan
Tera Contributor

Hi, 

How can I create a Time Zone field in cmdb_ci for any class type. What should be its field type and how to provide time zone choices, etc.

My requirement is to create a time zone field. Please refer to attached screenshot.

 

Thanks,

Intakhab

 

4 REPLIES 4

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Intakhab Khan ,

 

You can click on Configure > dictonary  in 'timezone' field of sys_user table record and find were the choices are coming from.

 

inorder to create a new timezone field in cmdb table you can target a sepecific class were you need to create a new field, choose type as select box and in choices select the desired tables same as in sys_user table.

 

i hope this helps.

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

-O-
Kilo Patron
Kilo Patron

Create a field of type choice or of type string with a choice option and set sys_user as choice table and time_zone choice field.

-O-
Kilo Patron
Kilo Patron

Also do that using the CI Class Manager selecting the most basic CI class. E.g. if you want the TZ field to be available to all hardware CIs, select Hardware in the Hierarchy. If you want all CIs to have the TZ field, select Configuration Item in the hierarchy.

E.g:

17.jpg

 

After you add the new attribute, open the newly created field and set the choice sources:

18.jpg

 

-O-
Kilo Patron
Kilo Patron

If indeed you need the field on all classes, you should select "Configuration Item" in the hierarchy before adding the new attribute (field):

19.jpg