Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link
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).

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 22 '10, 7:51 a.m.

Question was seen: 5,386 times

Last updated: May 29 '15, 11:23 a.m.

Confirmation Cancel Confirm