How to create child work items automatically in RTC
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.
Regards,
SAJJAD
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.
Regards,
SAJJAD
Accepted answer
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 https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ and perform the workshop that is linked inside.
Look at the examples for participants provided on https://rsjazz.wordpress.com/?s=participant and also search fr how links are created on that blog.
The code to create a work item in a participant is
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 https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ and perform the workshop that is linked inside.
Look at the examples for participants provided on https://rsjazz.wordpress.com/?s=participant 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 SetadditionalParams = new HashSet (); additionalParams.add("DONT_TRIGGER_ON_ME"); IStatus status = IWorkItemServer.saveWorkItem3(newTargetWorkItem, null, null,additionalParams); if(!status.isOK()){ // fail }