You need to create a dynamic filter using the [$ME] functionality
- Open Work Items
- Select RISK work item
- Create a filter and select item type=”RISK“
- Include the fields you wish to see
- On the Filter “Advance” options, in the “User Define Criteria”, put the following script:
id in (select id from objects where obj_key in (select obj_source from object_relations where obj_target like ‘%[$ME]%’)) or id in (select id from objects where obj_key in (select obj_target from object_relations where obj_source like ‘%[$ME]%’))
- Save the filter selecting “All” in project
- Open Admin and open your project
- Select “Templates” tab, and select CAPA work item
- Click “Embed View” to Add dynamic view into your template, by selecting “Risk” work item and the filter you have created
- Save
- When you will open your CAPA you will be able to see the related risk items in the description