The CreatorCon Call for Content is officially open! Get started here.

Hr case short recsription

chandan31
Tera Contributor

Hi All,

 

 

Can you tell me  in which script short description of hr case is populating  "HR service name - employee name (employee ID)because one of the service which is designed recently i want static short description like  "abcd" but i am unable to find the script .

 

Can you suggest.

 

  

1 ACCEPTED SOLUTION

You could do like this

_setShortDescription: function(serviceName, username) {
gs.info("check ServiceName"+serviceName);// check the value of your servicename in logs
        if(serviceName == "Your Service Name") // pass your HR servicename you get in log
        {
            this._case.short_description = gs.getMessage("{0} case for {1}", [ "YOur short desc", username ]);
        }
        else
        {
                this._case.short_description = gs.getMessage("{0} case for {1}", [ serviceName, username ]);
        }
   
    },
Regards
Harish

View solution in original post

8 REPLIES 8

It is available"hr_CaseUtils" , Can you tell where to modify for particular HR service ,

 

Can you guide me 

You could do like this

_setShortDescription: function(serviceName, username) {
gs.info("check ServiceName"+serviceName);// check the value of your servicename in logs
        if(serviceName == "Your Service Name") // pass your HR servicename you get in log
        {
            this._case.short_description = gs.getMessage("{0} case for {1}", [ "YOur short desc", username ]);
        }
        else
        {
                this._case.short_description = gs.getMessage("{0} case for {1}", [ serviceName, username ]);
        }
   
    },
Regards
Harish

Hi ,

 

I got the line in the hr_CaseUtils" script include where to modify for the script , i am not able to understand how to stop the short description for  particular Hr service or item.

Did you try the logic I shared?

Regards
Harish