Changing the auto-populated value of HR Case Short Description

shegde
Giga Contributor

Maybe I'm missing something simple in terms of configuration, but how can I change the auto-populated value of the Case Short Description? Right now it's filling in the format "<Service name> Case For <Opened For user>".

How/where is this value set? I can't find it in the Business Rules, so am I correct in assuming that this is in the script includes?

1 ACCEPTED SOLUTION

Correct. The script include is named hr_ServicesUtil, and it's calling the function: createCaseFromProducer



You can replace that line with what you need, like the example your provided or if you have a lot of record producers, you can create a new script includes that will generate it for you, like what comes out of the box.


View solution in original post

11 REPLIES 11

Michael Fry1
Kilo Patron

It's in the Script field on the Record Producers. That's where you need to change it.


So I'd essentially need to add something like: current.short_description=producer.service_name + " case for " + producer.subject_name; to the script of every single record producer?



By default, this is the only script on the Record Producer:



new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);



That is pointing to script includes, which I presume have the actual bit of code setting the current values.


Correct. The script include is named hr_ServicesUtil, and it's calling the function: createCaseFromProducer



You can replace that line with what you need, like the example your provided or if you have a lot of record producers, you can create a new script includes that will generate it for you, like what comes out of the box.


Gotcha. Feels like it should be one of those items that should be more easily configurable. I'll play with a simple after submit business rule to set it for all cases, rather than fiddling with script includes, which tends to freak out HR folks.