Set value of multiple fields in a workitem
Hello,
I would to customise workitem and so I use dojo script in "Calculated values" to change value of my fields.
I have succeeded to modify a value of ONE field when I change the state of my workitem with the dojo method "return".
In fact, as this script is linked to only one field, only one field can be modified ...
I would like in the same script modify some fields ... In the documentation, I see that the method getValue can be used but is the method setValue() exist ???
Have you got a documentation of this specific dojo api ?
Thanks a lot
Mathieu
I would to customise workitem and so I use dojo script in "Calculated values" to change value of my fields.
I have succeeded to modify a value of ONE field when I change the state of my workitem with the dojo method "return".
In fact, as this script is linked to only one field, only one field can be modified ...
I would like in the same script modify some fields ... In the documentation, I see that the method getValue can be used but is the method setValue() exist ???
Have you got a documentation of this specific dojo api ?
Thanks a lot
Mathieu
9 answers
It is not possible to set a value through this "Calculated Value" script mechanism. See this article for the API reference.
As an alternative, you can use another calculated value script on the other attribute.
--
Gabriel Enriquez, IBM Rational, Tracking & Planning
As an alternative, you can use another calculated value script on the other attribute.
--
Gabriel Enriquez, IBM Rational, Tracking & Planning
1. Based on where you are Creating the Plug-in Site folder, It will be decided.
- Correction, What we are talking about is Plain Java API. Not java script.
2. They will be stored in the RTC Server. Not any where in the Project area.
3. It Should.
Before that make sure who have gone through the Links
https://jazz.net/library/article/784
and especially
https://jazz.net/library/article/634
- Correction, What we are talking about is Plain Java API. Not java script.
2. They will be stored in the RTC Server. Not any where in the Project area.
3. It Should.
Before that make sure who have gone through the Links
https://jazz.net/library/article/784
and especially
https://jazz.net/library/article/634
Comments
Hi Mathieu,
1. A plugin is not a script, but a complete package deployed at server or client level.
2. For a server-side plugin - contents will be extracted into corresponding sites folder and path mapped in provision profiles directory.
3. Server-side plugins - will be triggered on certain operations - like save workitem and will execute on any client. (Process config->Team configuration->operation behaviour)
1. A plugin is not a script, but a complete package deployed at server or client level.
2. For a server-side plugin - contents will be extracted into corresponding sites folder and path mapped in provision profiles directory.
3. Server-side plugins - will be triggered on certain operations - like save workitem and will execute on any client. (Process config->Team configuration->operation behaviour)
Thanks Gabriel for your post.
It's also my workaround but there is a big problem ...
What is the first field which will be updated ??? In fact, I cannot organize the order of my scripts when they are executed ...
Have you got an idea to modify this order ?
Thanks !
Mathieu
It's also my workaround but there is a big problem ...
What is the first field which will be updated ??? In fact, I cannot organize the order of my scripts when they are executed ...
Have you got an idea to modify this order ?
Thanks !
Mathieu
Comments
1 vote
Thanks a lot !!! It's a very important information :-)
So I have questions :
1) How do you know if the script is a "Server side plug-in" and not a "Client Side plug-in" ?
2) Where are they stored ? In the "Calculated values" ?
3) Are you sure that the "Server side plug-in" can be executed fro mthe web site ?
So I have questions :
1) How do you know if the script is a "Server side plug-in" and not a "Client Side plug-in" ?
2) Where are they stored ? In the "Calculated values" ?
3) Are you sure that the "Server side plug-in" can be executed fro mthe web site ?