add field for service in a config item

Moderator: crythias

Locked
kinger
Znuny newbie
Posts: 1
Joined: 30 Mar 2011, 14:15
Znuny Version: 3.0.6

add field for service in a config item

Post by kinger »

Hi, I am trying to add a new config item class with a field linked to the services. I know you can link them together but I am using this to record access rights for users to various services and I need the additional audit trail in the history to show what was changed, and I also want to reduce the additional steps that agents are likely to forget. One more thing, if we use it as a field rather than a link, I can very easily search for all users rights to a service or for all rights for any user and create a stats report.

This works great if I use the field as a free text but that opens us up to mistypes and agents recording things that are not services. I thought it would a simple thing but apparently not.

I have the following in the class definition, is there any way i can make the service field a link to services? either a drop down or a search/index like the owner field wold be perfect

Code: Select all

[
    {
        Key => 'Service',
        Name => 'Service',
        Searchable => 1,
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 50,
        },
    },
    {
        Key => 'Type',
        Name => 'Type',
        Searchable => 1,
        Input => {
            Type => 'GeneralCatalog',
            Class => 'AccessRightsType',
            Translation => 1,
        },
    },
    {
        Key => 'Owner',
        Name => 'Owner',
        Searchable => 1,
        Input => {
            Type => 'Customer',
        },
    },
];
Locked