We created a custom sub-page on the Task object with an internal-link action that we want to create an issue or risk linked to the associated Task instance when used. The action is associating the Issues and Risks with the Project instance instead of the expected Task instance.
How do we do this?
Due to the way that Clarity PPM is designed, you cannot link instances of Risks and Issues to a Task instance using context sensitive parameters in dynamic links. The reason is that Tasks and those objects have different Object relationships in our ODF schema so what you want to do is not possible.
What you ought to do next is post to the CA Clarity PPM User community to describe your business requirements and ask for some assistance with your custom use case of the product. https://communities.ca.com/community/ca-ppm