It's all about the answers!

Ask a question

how to create child workitems automatically when parent is created?


Satish Narayanachar (96426) | asked Nov 16 '17, 4:53 a.m.

Hi All,

Scenarios below.

1. Assume I have a workitem(Defect) created and it is assigned for product A then a child workitem(Task) shoud be creatred automatically with defect as parent.

2. if the same workitem(Defect) is assigned to mutliple products (product a, product B and product C) then 3 child workitems(Task) should be created assigned to different products A,B and C.

Is this achievable?
if yes, how can I achieve this?

Regards,
Satish

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered Nov 16 '17, 6:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

See my answer in https://jazz.net/forum/questions/206897/how-to-create-child-work-items-automatically-in-rtc
You will have to also create the parent/child link and add that to the save.

Start here with extensibility: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ There are numerous examples in posts around all the stuff you will have to look at.

Satish Narayanachar selected this answer as the correct answer

Comments
Satish Narayanachar commented Oct 08 '18, 2:03 p.m.
Hi Ralph,

I was able to create the work item automatically when parent is created however I am not able to populate comments/tags from parent to child.

Any inputs?

Thanks,
Satish

Ralph Schoon commented Oct 08 '18, 2:23 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I am pretty sure the above links provide what you need already. In addition, seeĀ https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/

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.