It's all about the answers!

Ask a question

How to add related Artifacts by using server side plugin code

Govindaraj Ponnusamy (116) | asked May 30 '16, 1:32 a.m.

Dear All,

We're trying to link two different workitems through related artifacts by using server side code (trying to copying the attributes from one workitem to the other work item when linking with the related artifacts) If it is a parent and Child relationship, it is working fine and copying the Attribute Values but related artifacts linking it is not working.

either we need to change anything in the additional parameters.

Set<String> additionalParams = new HashSet<String>();


fWorkItemServer.saveWorkItem3(parentWorkItem, null, null, additionalParams);

Thanks in Advanced.



One answer

permanent link
Ralph Schoon (63.2k33646) | answered May 30 '16, 2:49 a.m.
edited May 30 '16, 2:50 a.m.
1st: "it is not working" is not helpful, I'd recommend reading How should I ask a question in the Forum if I want to receive useful answers?

2nd: If you create a relationship in the server API, you MUST save the relationship in the 2nd parameter of IWorkItemServer.saveWorkItem3() See:

3rd: Additional parameters are only used to pass information from one extension to another e.g. to prevent recursion. There is one additional parameter that is important for specific back links:


For completeness see:

Also note there are different types of creating links e.g. from an IWorkItem or from a location. If you create the reference in the wrong way, the links won't work.


Your answer

Register or 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.