Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to relate multiple change request to an Incident?

Community Alums
Not applicable

I have 10 change requests fields in my incident form.

find_real_file.png

I want these 10 change requests to show up in the Incident Form Related List. Right now, only one can be listed. How to show all 10 change requests?

find_real_file.png

This is the Relationship I created. Need your help to link many change request to one Incident. Is this possible to do? or, any other suggestion?

find_real_file.png

1 ACCEPTED SOLUTION

dvp
Mega Sage

Here is the query



current.addQuery('sys_id', parent.change_1_field_name).addOrCondition('sys_id', parent.change_2_field_name);



likewise add the rest of the change fields


View solution in original post

16 REPLIES 16

It is in relationships.



Navigate to System Definition> Relationships


Community Alums
Not applicable

I have something addition to this.



Now, when I go into the change# that I added on incident form, I should see the Incident# in the "Incidents Pending Change". How to edit this?


find_real_file.png



This is what I see in the related list entries. Is there a way to alter this?


find_real_file.png