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

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

0 votes


Accepted answer

Permanent link
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
IWorkItem newTargetWorkItem = IWorkItemServer.createWorkItem2(IWorkItemType targetWorkItemType);

Set the required attributes.....

// Additional parameter to avoid recursion
Set additionalParams = new HashSet();
additionalParams.add("DONT_TRIGGER_ON_ME");

IStatus status = IWorkItemServer.saveWorkItem3(newTargetWorkItem, null, null,additionalParams);
if(!status.isOK()){
   // fail
}

Ralph Schoon selected this answer as the correct answer

0 votes

Comments

Ralph Schoon

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

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
× 10,938

Question asked: Sep 16 '15, 1:36 a.m.

Question was seen: 4,198 times

Last updated: Sep 16 '15, 4:04 p.m.

Confirmation Cancel Confirm