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.
|
One answer
Ralph Schoon (63.5k●3●36●46)
| 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 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
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.