The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to make 'Incidents fix by Change' mandatory in change request?

Hermes14
Tera Contributor

Hi,
how do i make the incident fix by change mandatory in the related list tab in change request?

 

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Hermes14 

 

You can use a BR to make it mandatory, but the question is—does an incident always get fixed through a change in practical scenarios? Rethink this approach, but yes, you can enforce it as mandatory if needed.

https://www.servicenow.com/community/itsm-forum/mandatory-related-list/m-p/813518

 

https://www.servicenow.com/community/itsm-forum/how-to-make-related-list-as-mandatory/m-p/827850

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

@Hermes14 

you can use before update business rule and check and abort the update.

Condition: Category Changes to Service

Script:

(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    var gr = new GlideRecord("incident");
    gr.addQuery("rfc", current.sys_id);
    gr.query();
    if (!gr.hasNext()) {
        gs.addErrorMessage('Please add data in related list');
        current.setAbortAction(true);
    }

})(current, previous);

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

15 REPLIES 15

keshav77
Tera Contributor

Hi @Hermes14 ,

 

Kindly explain your requirements little bit  so we can help you out.

Or your are looking for adding incident in related list of change.

There are couple of ways to achieve so.

 

1. In any table (other than change_request) if you have any field referring change_request, you can simply call that table in Change request table. Right click on the form header-->Configure-->Related Lists-->Select that in Available slush-bucket and Save it.

 

2. Or you may create a new Relationship by navigating System Definition-->Relationships and add that in your Change Request table as mentioned in the above point. You may refer these helpful links:

 



I hope this helps. Please mark correct/helpful based on impact

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Hermes14 

 

You can use a BR to make it mandatory, but the question is—does an incident always get fixed through a change in practical scenarios? Rethink this approach, but yes, you can enforce it as mandatory if needed.

https://www.servicenow.com/community/itsm-forum/mandatory-related-list/m-p/813518

 

https://www.servicenow.com/community/itsm-forum/how-to-make-related-list-as-mandatory/m-p/827850

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Hermes14 

you cannot make field in related list mandatory from the current form

what's your business requirement here?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

My requirement is when the Category is in service, the 'incidents fixed by change will become mandatory.