Timesheet entries are vanishing ones RTC Client is closed
Hi
I am using RTC 3.0. I did a small customization where I created 2 new fields, 1) Time remaining (TR) 2) Estimated Time of Completion (ETC). The calculated value script is placed in the field ETC.
The script works this way--> Value in ETC = Time Spent (built in attribute) + Time Remaining.
The customization works fine when the RTC Client is open. If i close the Client still the script works but the Timesheet entries will be vanished. To keep the Timesheet entries visible I need to keep the RTC Client open.
Does anybody know what will be the reason for this.
I am using RTC 3.0. I did a small customization where I created 2 new fields, 1) Time remaining (TR) 2) Estimated Time of Completion (ETC). The calculated value script is placed in the field ETC.
The script works this way--> Value in ETC = Time Spent (built in attribute) + Time Remaining.
The customization works fine when the RTC Client is open. If i close the Client still the script works but the Timesheet entries will be vanished. To keep the Timesheet entries visible I need to keep the RTC Client open.
Does anybody know what will be the reason for this.
3 answers
Hi
I am using RTC 3.0. I did a small customization where I created 2 new fields, 1) Time remaining (TR) 2) Estimated Time of Completion (ETC). The calculated value script is placed in the field ETC.
The script works this way--> Value in ETC = Time Spent (built in attribute) + Time Remaining.
The customization works fine when the RTC Client is open. If i close the Client still the script works but the Timesheet entries will be vanished. To keep the Timesheet entries visible I need to keep the RTC Client open.
Does anybody know what will be the reason for this.
Hi Gayatri,
I didn't understand the issue clearly, and how I can reproduce it myself. Can you please provide more detailed explanation of what attributes were added, how u added them exactly, what types of attributes, the "script" that you talked about, how it is related to timesheet etc.
Hi Prabodh
I have created a defect work item (213487) through Jazz.net. I have explained everything in detailed there. You will also find screen shots. Please follow the below link.
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=213487
Thanks and Regards
Gayathri
Hi Gayatri,
I didn't understand the issue clearly, and how I can reproduce it myself. Can you please provide more detailed explanation of what attributes were added, how u added them exactly, what types of attributes, the "script" that you talked about, how it is related to timesheet etc.
I have created a defect work item (213487) through Jazz.net. I have explained everything in detailed there. You will also find screen shots. Please follow the below link.
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=213487
Thanks and Regards
Gayathri
Hi
I am using RTC 3.0. I did a small customization where I created 2 new fields, 1) Time remaining (TR) 2) Estimated Time of Completion (ETC). The calculated value script is placed in the field ETC.
The script works this way--> Value in ETC = Time Spent (built in attribute) + Time Remaining.
The customization works fine when the RTC Client is open. If i close the Client still the script works but the Timesheet entries will be vanished. To keep the Timesheet entries visible I need to keep the RTC Client open.
Does anybody know what will be the reason for this.
Hi Gayatri,
I didn't understand the issue clearly, and how I can reproduce it myself. Can you please provide more detailed explanation of what attributes were added, how u added them exactly, what types of attributes, the "script" that you talked about, how it is related to timesheet etc.
Hi Prabodh
I have explained the steps I followed one by one here.
1) I created a new Project Area (Name: Plain Project) with scrum process template. (Attribute Customization is un-configured in this template)
2) After that, I created new attribute Time Remaining (ETC) of type 'Duration' in the work item type Task.
3)Then I created 1 more new attribute Estimate At Completion (EAC) if type 'String' in the work item type Task. Checked the check box for 'Read-Only' and also declared a dependency on 'Time Spent' and 'Time Remaining (ETC)' attributes.
4)Added new Calcuated Value entry 'EstimatedCompletion' in Attribute Customization section.
5)Opened Estimate At Completion (EAC) attribute to edit and from the Calculated Value drop down chose 'EstimatedCompletion' and saved the change.
4) Placed both the attributes in the Editor Presentation
5)After that, from the Links tab scrolled down to Attachments and added the java script com.example.durationCalculationValueProvider.js
6) Then in Process Configuration Source edited the ValueProvider for 'EstimatedCompletion' to as below:
<valueProvider id="com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._rQ8gALV7EeGtyuP3ovgn6Q" name="EstimatedCompletion" providerId="com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider">
<script class="com.example.durationCalculationValueProvider" path="/workitem/scripts/common/com.example.durationCalculationValueProvider.js"/>
<TimeSpent id="com.ibm.team.workitem.attribute.timespent"/>
<TimeRemaining id="TimeRemaining"/>
</valueProvider>
7) Also verified the Estimate At Completion attribuite id in process configuration source:
<attributeDefinition id="ECT" name="Estimate At Completion (EAC)" readOnly="true" type="smallstring">
<valueProvider providerId="com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._rQ8gALV7EeGtyuP3ovgn6Q"/>
<dependsOn id="com.ibm.team.workitem.attribute.timespent"/>
<dependsOn id="TimeRemaining"/>
8)Saved the Project Area
Testing steps to see whether the customization is working as expected
1) Tried to create a Task work item from RTC Client and it works without any issues as usual.
2) Tried to create a Task work item from RTC Web and itis seen that the claculation works as defined in the script always. But the timesheet values still vanishes sometimes. Sometimes it works well. This was observed even before.
Please let me know if you need any more information.
Thanks
Gayathri...
I have explained the steps I followed one by one here.
1) I created a new Project Area (Name: Plain Project) with scrum process template. (Attribute Customization is un-configured in this template)
2) After that, I created new attribute Time Remaining (ETC) of type 'Duration' in the work item type Task.
3)Then I created 1 more new attribute Estimate At Completion (EAC) if type 'String' in the work item type Task. Checked the check box for 'Read-Only' and also declared a dependency on 'Time Spent' and 'Time Remaining (ETC)' attributes.
4)Added new Calcuated Value entry 'EstimatedCompletion' in Attribute Customization section.
5)Opened Estimate At Completion (EAC) attribute to edit and from the Calculated Value drop down chose 'EstimatedCompletion' and saved the change.
4) Placed both the attributes in the Editor Presentation
5)After that, from the Links tab scrolled down to Attachments and added the java script com.example.durationCalculatio
6) Then in Process Configuration Source edited the ValueProvider for 'EstimatedCompletion' to as below:
<valueProvider id="com.ibm.team.workitem.valu
<script class="com.example.durationCal
<TimeSpent id="com.ibm.team.workitem.attr
<TimeRemaining id="TimeRemaining"/>
</valueProvider>
7) Also verified the Estimate At Completion attribuite id in process configuration source:
<attributeDefinition id="ECT" name="Estimate At Completion (EAC)" readOnly="true" type="smallstring">
<valueProvider providerId="com.ibm.team.worki
<dependsOn id="com.ibm.team.workitem.attr
<dependsOn id="TimeRemaining"/>
8)Saved the Project Area
Testing steps to see whether the customization is working as expected
1) Tried to create a Task work item from RTC Client and it works without any issues as usual.
2) Tried to create a Task work item from RTC Web and itis seen that the claculation works as defined in the script always. But the timesheet values still vanishes sometimes. Sometimes it works well. This was observed even before.
Please let me know if you need any more information.
Thanks
Gayathri...