You can manage (i.e., create, update, delete) Test Plans directly through Jira's native REST API.
The Xray REST API provides the following endpoints.
Test Plan Tests
- To view the Test associated with a Test Plan, you need to specify the key of the Test Plan you wish to view.
- To associate or remove a Test from a Test Plan, you need to send a JSON with a list of the keys. When associating, these keys can be Test keys or Test Set keys; when removing, they can only be Test keys.
- To remove a Test from a Test Plan, you need to specify the key of the Test you wish to remove.
Test Plan Test Executions
- To view the Test Executions associated with a Test Plan, you need to specify the key of the Test Plan you wish to view.
- To associate or remove a Test Execution from a Test Plan, you need to send a JSON with a list of the Test Execution keys.
- To remove a Test Execution from a Test Plan, you need to specify the key of the Test Execution you wish to remove.