It's all about the answers!

Ask a question

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


Houssem Gherbi (322) | asked Nov 27 '13, 12:04 p.m.
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.

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Nov 28 '13, 2:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

Comments
Houssem Gherbi commented Nov 28 '13, 5:46 a.m. | edited Mar 19 '15, 5:59 p.m.

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.


Simone Arnone commented Mar 19 '15, 7:14 a.m. | edited Mar 19 '15, 5:59 p.m.

 Hello Houssem,

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

Thanks
Simone

Your answer


Register or to post your answer.