Relate request item and change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2016 07:04 AM
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?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2016 10:55 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2019 10:19 PM
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