Best way to check for bad links via the REST API?
![]()
I am writing an app to check the entire repository for bad links via the REST API. Unfortunately, the current method is:
https://SERVER:9443/jazz/oslc/workitems/WORKITEMID/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children.xml and look for error "CRJAZ0215E" in the result. For EVERY work item. In addition, I have to do this for each of the following link types: .parentworkitem.children .parentworkitem.parent .relatedworkitem.related .textualReference.textuallyReferenced .relatedartifact.relatedArtifact .attachment.attachment .copiedworkitem.copies .copiedworkitem.copiedFrom .duplicateworkitem.duplicates .duplicateworkitem.duplicateOf .blocksworkitem.blocks .blocksworkitem.dependsOn That's 12 queries each for 50,000 work items. Is there a faster way to do this via the REST API? |
3 answers
![]()
I have completed my app for link checking in RTC. If anyone else is suffering from bad link issues (or thinks they might be or wants to make sure they aren't), let me know and I will send you my app. The app does not do any writing to RTC, only reading. You will still need to edit the work items in 4.0.6 or later to remove the bad links.
|