I have a task to create Traceability Matrix for test cases in test manager. For that I created an extra entity in CQ database called Requirements. In this entity I added Reference List to TMTestCase & Backward reference. Then I added list on the Requirement form and it worked fine. We were able to add/remove test cases to Requirements.

After that we realized that we also need to Add/Remove Requirements to Test Cases. In other words we need to modify reference list via Backward Reference. And it seems to be impossible using standard approach... I feel I need to create a script but I can't find any example.

Can you please advice how to solve this problem?

Thanks a lot in advance!