Service Offering Mandatory for Technical or Business Service

Piyush Dwivedi
Tera Contributor

Issue is, when i am selecting technical service in "Service" field of Change form then after submitting the Change record the "Service offering" field getting mandatory automatically as per my expectations.

further to this when i am changing Service in "Service" field as Non Technical or Business service and then againing clicking update the change record then it's not allowing me since Service offering is mandatory,

I am try Dot walk UI Policy.

so, can we have a solution for this where Service offering gets optional once we select no Technical or Business service?

 

 

1 ACCEPTED SOLUTION

Define a client script for the incident table, as you have for the change_request table. The same Script Include can be used by any number of client scripts. You can copy the client script and just change the table from 'change_request' to 'incident'. 

View solution in original post

21 REPLIES 21

Yeah same (cmdb_ci_service_business) &  (cmdb_ci_service_technical).

 

Your Client script + script include only are not fulfilling my requirement since its making Service_offering field optional with value filled for Service as

(cmdb_ci_service_business) or  (cmdb_ci_service_technical).

post submit of Change Request.

but when i include UI Policy , the requirement is working fully.

 

do you have further more changes to the script, pls?

Ok, what I've provided works when a user is updating a change request, while the form is visible. For post submit, I used a business rule. Use your UI Policy in combination if your requirements are met that way.

 

 

sure, that means the requirement won't be suffice only via Client script + Script Include?

 

I have one more requirement, if you can help me with that?

How can we configure When we have mandatory Service offering and it shows listing of Service offering only for selected service in Change Request form?

Seems to be due to how the service_offering field is defined, it has a reference qualifier:

javascript:'parent='+current.business_service;

which again is a reference field on the cmdb_ci_service table.

Thanks.

Hello @Bert_c1  If we want to have same functionality on Incident form, what we need to change, Please let me know?