Links to deleted testdata through REST interface still available
Hello,
I have an automation adapter for rqm and need in addition testdata linked to a manuell testscript of the same testcase. To get this testdata and the corresponding filter I follow this steps: 1. In the automationRequest recived by the automation adapter get dc:relation 2. In this xml get http://jazz.net/xmlns/alm/qm/v0.1/:executionworkitem 3. Next get the testcase http://jazz.net/xmlns/alm/qm/v0.1/:testcase 4. Testcase specific filters are available at http://jazz.net/xmlns/alm/qm/v0.1/:testcaserecordselection attributes There is one attribute for each manuell testscript including an testcase specific filter. 5. The manuell testscript is available at: http://jazz.net/xmlns/alm/qm/v0.1/:executionscript 6. There is a http://jazz.net/xmlns/alm/qm/v0.1/:datapool containing the information about the testdata 7. Through http://jazz.net/xmlns/alm/qm/v0.1/:attachment the actual testdata is available I deleted the testdata without deleting the links bevor. The result is: 1. The link stays in the testscript ui (overmouse informs about deletion) 2. The filter disappears in the testcase ui 3. The filter at http://jazz.net/xmlns/alm/qm/v0.1/:testcaserecordselection is still visible 4. The url to http://jazz.net/xmlns/alm/qm/v0.1/:datapool does not work any more (Error 404: SRVE0295E: Error reported: 404) After deleting the testdata from trash, links and corresponding filters disappear. Is there a way to find out, if the filter and corresponding links are still actual or in the trash? Thank you Gerd for your fast answer, but there is no archived or purged flag on my xml. Eg. I have got an xml file like that:
Melanie |
One answer
Gerd Schiering (122●1●13●16)
| answered Aug 14 '15, 4:57 a.m.
JAZZ DEVELOPER edited Aug 14 '15, 4:57 a.m.
Hello Melanie,
You can check for the purged flag. when you delete from the UI, the records stay in the DB. we are not showing them anymore in the UI. They are now carrying the ARCHIVED flag. That is the reason why you can still find the links through the API. Once you delete from Trash that will "conserve" a record that it existed ever and who did the delete. Actual data and history will either be deleted from the DB or in the case of attachments, be replaced by an empty file. Using the API description https://jazz.net/wiki/bin/view/Main/RqmApi#includeArchived you see that the artifacts deleted from the UI carry the archived flag and the ones that have been deleted from trash carry the purged flag. Hope this explains, Gerd IBM TechSupport Comments
Melanie Finke
commented Aug 17 '15, 3:59 a.m.
Hello Gerd,
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.