Adding affected CI's to change request using Transform script

Jake Adams
Tera Contributor

Hi,

 

I have an import set api to create change requests.

 

Based on few conditions I want to add multiple Affected CI's to the Change request once its created.

 

I am trying to do this using the onbefore Transform script but it's not adding the CI's to Affected CI related list.

 

How can I achieve this?