Child and Parent request affected Ci's should be in sync

rakshith_shetty
Tera Contributor

Hi Team

we have a requirement , if any CI's that get added or removed from affected CI related list of child task(change_task) same needs to be added or removed from parent request (change-request) both should be in sync


how can we implement this can any one suggest ?


Regards
Rak**bleep**h

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @rakshith_shetty 

 

Interesting ask and must be OOTB but it is not there. For this you need to write BR after insert ./ update but the challenges it may impact the change page performance.  I am not  developer so cnat help with code.

 

High level

 

Capture all Affected CI / Impacted Services in array for change and task 

Then compare first impacted Services 

Then compare Affected CI

and do add / remove. 

@Sandeep Rajput  @AshishKM any thoughts

*************************************************************************************************************
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]

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

AshishKM
Kilo Patron
Kilo Patron

Hi @rakshith_shetty , 

Why you need to add that data to change_request from change_task. As per OOTB good practise the change_task should reflect the same set of CI which were added at change_request and after approval change moved to implement state. 

 

However you can achieve this via BR [ insert/update] on task_ci table ( or any custome one ) and update the same table ( task_ci) for change_request. So both CI mapping will be on same table. 

 

-Thanks,
AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution