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

Using custom javascript, how to automatically create a child work item for a contributor when he is added to a work item?

Hi,
I want to know how can I have child work item for a contributor, this child work item is created automatically when the new contributor is added in a work item, using custom javascript.
e.g. If a work item have one author, and we want to add a second author, then a new child work item for this author is created automatically, how can I do that ? (the new work item is needed to track the new author status).
Thanks.

0 votes



One answer

Permanent link
Houssem,

basically, with JavaScript, you can't.

See https://jazz.net/library/article/1093 Lab 5 the first few pages that talk about the capabilities and limitations of JavaScript.

I might not have made it extremely clear, but the JavaScript API does not allow you to even read out of the scope of the attributes, much less create or write stuff.

To do something like this, you would have to create a Java follow up action. Some are described in https://rsjazz.wordpress.com/ also some of the API you would need is described there.

0 votes

Comments

Hello Ralph,


Thank you for your response, I will do that probably with a plugin, I think that is possible, or create a java follow up action as you said, I will keep you posted.

Best regards,
Houssem.

 Hello Houssem,

have you resolved the problem? I need to get a solution.

Thanks
Simone

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,937
× 152
× 102

Question asked: Nov 27 '13, 12:04 p.m.

Question was seen: 7,770 times

Last updated: Mar 19 '15, 5:59 p.m.

Confirmation Cancel Confirm