Relate request item and change

nortonxnorris
Giga Expert

I have added a variable on a RITM, called 'Related Change' which is a reference to the change table.

When i select a change on the RITM form, I would like this to be displayed on a change ticket, under a related list.

I have created a new relation, called 'Related Request' on a change form.

This is pulling all RITMs in the system, however, i would like it to be filtered to only the RITM that has the change in the variable.

Query used: current.addQuery('request_item.variables.related_change',parent.sys_id);

Where am I going wrong?

6 REPLIES 6

nortonxnorris
Giga Expert

Not sure if this was the best solution, however, it seems to work.



1: Add a new field on the Request Item table, a reference to the change table.


2: Setup a business rule to copy the variable from the RITM form. to the field created in step 1.


3: Setup a relationship between the request item, and change table,


Use a query like this to filter the results: current.addQuery('u_related_cr',parent.sys_id);


HI,

 

I am having the same requirement like,

 

if i am creating a change request from RITM then the change request should conatin the related RITM in a field.

 

How to get this done?

please reply me