Configuration item mapping

dmahendran
Tera Contributor

Hello Everyone!!

I have the requirement of adding new categories and sub-categories on the incident table, after adding those new categories and sub categories, i want to map the configuration items for the particular categories in the incident form as the Configuration item field is mandatory for the form submission. Any ideas/Suggestion would be sincerely appreciated.

TYSM!!

2 REPLIES 2

Mani A
Tera Guru

write reference qual condition on CI field that based on current category ,related CI should be visible like that 

 

Create script include and call it from above ref qual by passing parameter as category values

 example : javascript: getCIs(current.category);

 

    getCIs: function(category) {

        var cIs = [];

        var ciGR = new GlideRecord('cmdb_ci');

        ciGR.addQuery('category', category);

        ciGR.query();

 

        while (ciGR.next()) {

            cIs.push( ciGR.sys_id.toString(),}

                 }

        return 'sys_idIN'+cIs.join(',')

    

Hello @Mani A 
This is not working, I got the issue with populating the CI's for the new categories. Any other suggestions!
Thanks In Advance.