The CreatorCon Call for Content is officially open! Get started here.

How to get RITM number in Change Related List

bijender1
Tera Contributor

Hi,

We want to create Change Request from RITM, which is possible by activating "create change " UI action. However ,while creating Change request from RITM, change number is showing in RITM, but not in Change request.

find_real_file.png

Kindly advise if we can get RITM number in Change request also.

find_real_file.png

 

Regards,
b

9 REPLIES 9

@bijender 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Bijender 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

asifnoor
Kilo Patron

Hi,

1. create a reference field change_request in the table sc_req_item.

2. Then create a BR on change request and add this code.

(function executeRule(current, previous /*null when async*/) {
	// Add your code here
	var gr = new GlideRecord("sc_req_item");
	gr.addQuery("sys_id",current.parent);
	gr.query();
	if(gr.next()) {
		gr.parent=current.sys_id;
		gr.u_change_request=current.sys_id;
		gr.update();
	}	
})(current, previous);

Mark the comment as a correct answer and helpful if this helps.

Soumya Thareja1
Giga Expert

Hi Bijender,

You can create a many to many relationship between Change and Task.

Please refer to the link below 


https://www.servicenowguru.com/system-definition/relationships/defined-related-lists/

Amey8
Tera Guru

HI @bijender1  Were you able to solve this ? I'm facing the same issue.