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
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.
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.