It's all about the answers!

Ask a question

How to create child work items automatically in RTC

Sajjad Ali Khan (312851) | asked Sep 16 '15, 1:36 a.m.
edited Sep 16 '15, 2:01 a.m. by Ralph Schoon (60.5k33643)
Hi All,

I want to automatically generate child work-item against the Change Request Work item in RTC, while creating Change Request user would select a number of child work-item he want to create then after creating Change Request work item system would wait till the parent Change Request reach to specific state like Approved then RTC should generate email notification to the owner of that child change request work item and owner will start the workflow of child change request work item.

I hope u have clearly written my problem, kindly help me out to implement such requirement in my RTC customization work.


Accepted answer

permanent link
Ralph Schoon (60.5k33643) | answered Sep 16 '15, 3:22 a.m.
edited Sep 16 '15, 3:24 a.m.
This can be done by a capable Java developer by creating a follow up action. It is not doable with JavaScript.

There is a steep learning curve involved, if you haven't done Eclipse extensions and even if you have.

Here some hints how to start. Read and perform the workshop that is linked inside.

Look at the examples for participants provided on and also search fr how links are created on that blog.

The code to create a work item in a participant is
IWorkItem newTargetWorkItem = IWorkItemServer.createWorkItem2(IWorkItemType targetWorkItemType);

Set the required attributes.....

// Additional parameter to avoid recursion
Set additionalParams = new HashSet();

IStatus status = IWorkItemServer.saveWorkItem3(newTargetWorkItem, null, null,additionalParams);
   // fail

Ralph Schoon selected this answer as the correct answer

Sajjad Ali Khan commented Sep 16 '15, 4:04 p.m.

Ralph Schoon

Thanks dear for replying me, i will check this and let you know further.

Your answer

Register or to post your answer.