I am trying to add a run with the add_run endpoint, but in my automation code I only have the test cases ids but not the project id (which according the the docs is mandatory). Right now I am doing:
This seems like the wrong way to do it. Anybody has a better solution? Also is there a way to create a run without a project_id? for example if I have a sanity run that includes cases from many projects. Any help is appreciated.
You can do the following to get the parent project ID:
suite_id
fieldsuite_id
field and capture value of the project_id
field <--- here you have your project ID and can use it for creating runs.