Configure : Parent/Child relationship for Problem table

Kingstan M
Kilo Sage

Hello SNC,

I have an requirement that - To add Parent/Child relationship for Problem table.

I.e., When i add list of problems in the related list problem tab then all those will be considered as child problem and thus when i open any child problem record then the parent problem number should be published in the related records >> parent problem.

Any advice?

find_real_file.png

1 ACCEPTED SOLUTION

Mahendra RC
Mega Sage

Hello Kingstan,

To achieve this you can go to System Definition --> Relationships. Click on New button:

Create a new record as shown below:

find_real_file.png

Put the below script in Query with field on your record :

(function refineQuery(current, parent) {
	var parentProblemID = parent.getValue("parent");
	current.addQuery("sys_id", parentProblemID);
})(current, parent);

Go to the problem table and open any child problem record. Right click on form header go to Configure --> Related Lists

Search Parent Problem under Available section and move it to selected section and click on Save

find_real_file.png 

You will now see the Parent Problem related list which will show the Parent Problem.

Please mark my respsone as helpful/correct, if it answer your question.

Thanks

View solution in original post

11 REPLIES 11

Mark Manders
Mega Patron

The technical solution has been given, but why do you need that relationship? A problem is a cause, or potential cause, of one or more incidents. Problems can be raised in response to a single significant incident or multiple similar incidents. They can even be raised without the existence of a corresponding incident. There is 1 problem to investigate/fix the cause an incident (or multiple incidents) and prevent it from happening again. How can you have multiple Problems as parent/child records? In case 2 Problems are related enough to have that relation ship, because they exist, one should be closed, because it should not have been opened in the first place (there was already a problem there).

How is your (or your client) using the Problem process?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Indeed, We needed to relate IF any problem is related to x-Problem. Then when the form shows the double-way of showing the related PRB. So, That is the goal.