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
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

Community Alums
Not applicable

Thank you dvp. This is what exactly I was looking for.


Community Alums
Not applicable

Sachin & Joe, thanks for your help. That is the right way to do, I agree.



But, my team is asking for this kind of functionality, so I wanted to try it in my way. Finally it worked as dvp said.


No worries, if that worked for you.   Just realize there will be limitations both with the number of changes and the ability to use the Edit button.   But if it suits your purposes, that's what matters.


Community Alums
Not applicable

Thanks Joe. Script is working now. Good for now.:)


Hi Rajinis,



Could you let me know where was the above script written, was it business rule or client script



Thanks in advance


Saahil