[TIME-141] JIRA Timesheet not re-loading properly

Issue #141 duplicate
Andriy Zhdanov created an issue

Steps to reproduce:

  1. Create a dashboard and add the Timesheet gadget. It will default to the current user (you).
  2. Now, log work to an issue.
  3. Upon returning to the dashboard, you will not immediately see the work logged (as you did before the JIRA Studio updates).
  4. After some period of time (hours?), you can return to the dashboard and see the updates.

The only error in the logs is

WARN sysadmin 853x190304x1 a1p3ot 201.22.212.136 /secure/ConfigureReport.jspa [velocity] Warning! The iterative is an Enumeration in the #foreach() loop at [0,0] in template templates/timesheetreport/timesheet-report-project-totals.vm. Because it's not resetable, if used in more than once, this may lead to unexpected results.

By lamendes/Luzia Mendes [Atlassian] on Thu, 3 Mar 2011 14:10:12 -0800

Comments (7)

  1. Andriy Zhdanov reporter

    Can we expect any update on this - I have upgraded the timesheet plugin to make it compatible with JIRA 4.1.2

    By ewest on Tue, 15 Mar 2011 01:22:47 -0700

  2. Andriy Zhdanov reporter

    This must be have fixed in issue #109 "[TIME-109] Getting wrong user's details in portlet " on 2010-11-04, please make sure you use latest version.

    By azhdanov on Tue, 22 Mar 2011 04:49:22 -0700

  3. Andriy Zhdanov reporter

    We are using version 2.0, but the issue appears to still be present.

    By tmoore on Tue, 5 Apr 2011 23:37:48 -0700

  4. Andriy Zhdanov reporter

    Gadgets are fairly aggressively cached inside of the Atlassian Gadgets project (I've filed a bug to try and fix this). By supplying an authentication, a lot of caching is disabled.

    This bug could be fixed by following the gadget specification on the following page:

    http://confluence.atlassian.com/display/GADGETDEV/Using+the+Atlassian+Gadgets+JavaScript+Framework

    The two particular parts should fix this problem:

    <Optional feature="atlassian.util" /> #oauth

    Thanks,
    Brian McKenna

    By bmckenna on Wed, 6 Apr 2011 22:52:55 -0700

  5. Andriy Zhdanov reporter

    Thank you! Committed revision 159623: use #oauth gadget directive instead of controlling cache through response

    Please, someone, confirm it helps, because I can't reproduce it at all.

    By azhdanov on Fri, 8 Apr 2011 08:53:05 -0700

  6. Andriy Zhdanov reporter

    Committed revision 161240: revert using #oauth, use pragma no cache again, due to issue #153 "[TIME-153] Timesheet gadget doesn't immediately update with logged hours"

    By azhdanov on Mon, 6 Jun 2011 05:03:26 -0700

  7. Log in to comment