Problem with Work Item API: adding links
Hi.
I want to create 2 links for a work item to 2 ExecutionResults. I POST the following XML (<> replaced by [] as the forum does not display the source correctly) to URL https://VM-RQM2:9443/jazz/oslc/workitems/61/rtc_cm:com.ibm.rqm.execution.linktype.eresultrelatedtodefect.com.ibm.rqm.executionresult.xml : But the result is always that one link is created, the other one is not. Additionally, all existing links are deleted. The PUT command does not help either, it also just creates one of the two links. When POSTing the same XML to another collection, e.g. https://VM-RQM2:9443/jazz/oslc/workitems/_vPyggAc4Ed-BBaOubtRe6g/rtc_cm:com.ibm.team.workitem.linktype.relatedartifact.relatedArtifact.xml for links to related artifacts, both links are created. Why does the API just create one link to an ExecutionResult? What can i do to create both links (which must be possible somehow, as it is possible to do so using the Webbrowser GUI) Thanks in advance Finaris /edit: figured out on my own now. For those who have the same problem: You cannot add multiple links to that collection. Instead, you have to add a <defect> tag to the XML of the Execution result, then it works. |
One answer
Note: This post is 5+ years old.
Please upgrade to the latest version of RQM (see https://jazz.net/downloads/rational-quality-manager/) and review the product documentation (see https://jazz.net/help-dev/clm/topic/com.ibm.help.common.jazz.calm.doc/com.ibm.help.common.jazz.calm.doc_eclipse-gentopic1.html) and jazz.net resources (see https://jazz.net/help). If your issue persists, please ask a new question (https://jazz.net/forum/questions/ask), open a defect (see https://jazz.net/mystuff/#tab=workitems), or open a PMR (see http://www-01.ibm.com/support/docview.wss?uid=swg21507639). |
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.