I am trying to create a defect in our automation scripts on test failure.
Q1.Is it possible to log a defect when test run fails using jama REST apis? Please provide sample body and route if yes.I could only find a status field in sample body for test run (PUT/PATCH requests) and nothing directly for logging a defect.
I am trying to use the following approach currently :1) Create an item with itemtype defect.2.Create relationship between test run,test case and the created defect with parent relationship type.
Step 1 works fine. Step 2 is giving an error response (relationship rule violation) with apis. It works with web interface.I don't have enough access to check the relationship rules/ make changes to a rule.
Q2. Is the current approach feasible ? Any mistakes in current approach?
HEADQUARTERS|135 SW Taylor Suite 200, Portland, Oregon, 97204