Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



3 answers

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

0 votes


Permanent link
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

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.

0 votes


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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 24 '12, 8:33 a.m.

Question was seen: 5,522 times

Last updated: Jun 20 '12, 1:54 a.m.

Confirmation Cancel Confirm