Change request from - populate one field based on value entered from another field

Ogio
Tera Contributor

Hi everyone!

 

On a Change request form I need the Configuration item field (cmdb_ci) to populate with a value based on which assignment group is entered on the Assignment group field (assignment_group). 

 

So for example if "Release Managers" is selected as the assignment group, then the Configuration item field should auto-populate with "Business Intelligence".

 

Any guidance would be greatly appreciated.

 

Thank you

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@Ogio Is there any mapping defined between the assignment group and the Configuration item? If yes then you can write an onChange Client script on Assignment group field and use a GlideAjax API call to get the CI associated with the assignment group.

 

Please refer to this documentation https://docs.servicenow.com/bundle/utah-api-reference/page/app-store/dev_portal/API_reference/GlideA... for more details.

Hi Sandeep, unfortunately there isn't any mapping defined between the two. 

@Ogio Then on what basis a CI would be chosen when the Assignment group is populated?

Ogio
Tera Contributor

Basically a Change req for the CI Business Intelligence should only be assigned to the Release managers group. Kind of want to make the form fool proof, so that when that certain assigned group is selected then the user has no choice on which CI is selected. it must be Business Intelligence. 

 

Maybe I'm overthinking this and there is a much more simpler way to accomplish that