I want to set up an automation in Jira to manage the linkage of bugs with test plans in Xray.
Currently, I have test cases linked to a test execution, and these executions are associated with a test plan. However, when I execute a test case and identify a defect (bug), it is logged in Jira and linked to the test case and its execution, but not to the test plan.
The goal of the automation is to automatically establish the link between the bug and the corresponding test plan.