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 |
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 |
![]()
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 Comments Muthukumar, I have read this article https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Conditions . You see in the part "Providing new customizations implemented in Java", that Java API seems not to work on the Web UI. It's very strange with your solution ... Have you tested your plugin in the web site ? Thanks Mathieu |
![]()
Hi,
I am advising you Server side Operation Participant (Java API) to modify the values of attributes as in the order you want during the Save operation. Muthukumar.C |
![]()
Thanks Muthukumar but I have read on the documentation that if I use Java API, the scripts could not be executed on the web access and the scripts should be installed on each eclipse client ...
So this solution seems to be very binding ;-( Mathieu |
![]()
Hi,
There are two types of Plug-ins available. One is Client Side what you are talking about and another is Server side which will execute in the Server before saving every work item. [No need for Client level installation] So, You can go with Server side plug-in. |
![]()
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 ? |
![]()
Thanks Valli !!!
This week-end I hope I will have time to develop my first plugin and test to execute code when I save a workitem |