Uploaded image for project: 'Minyaa Suite'
  1. Minyaa Suite
  2. MYAA-513

'TimeTracking' section on Issue Screen disappears after Minyaa Time installation. How to restore it?

    XMLWordPrintableJSON

    Details

    • Type: Support Request
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.8
    • Component/s: Plugin Time Management
    • Security Level: Public
    • Labels:
      None
    • JIRA Release:
      4.0.0

      Attachments

        Issue Links

          Activity

          Hide
          vthoule Vincent Thoulé added a comment -

          Even if the JIRA Server restart, if the timestamp of compiled viewissue.jsp is newer that timestamp of the view_timetracking.jsp, viewissue.jsp will not be recompiled.

          Code of isTimeTrackingVisible is as follow :

          public boolean isTimeTrackingVisible() {
           FieldScreenRenderer editFieldScreenRenderer = fieldScreenRendererFactory.getFieldScreenRenderer(getRemoteUser(), getIssueObject(), IssueOperations.EDIT_ISSUE_OPERATION, false);
           return editFieldScreenRenderer.getFieldScreenRenderLayoutItem(fieldManager.getOrderableField(IssueFieldConstants.TIMETRACKING)).isShow(getIssueObject());
          }
          

          In my tests, I do not success to encounter a Null !
          I will keep the TrackingVisible != false in next releases

          Regards
          Vincent

          Show
          vthoule Vincent Thoulé added a comment - Even if the JIRA Server restart, if the timestamp of compiled viewissue.jsp is newer that timestamp of the view_timetracking.jsp, viewissue.jsp will not be recompiled. Code of isTimeTrackingVisible is as follow : public boolean isTimeTrackingVisible() { FieldScreenRenderer editFieldScreenRenderer = fieldScreenRendererFactory.getFieldScreenRenderer(getRemoteUser(), getIssueObject(), IssueOperations.EDIT_ISSUE_OPERATION, false ); return editFieldScreenRenderer.getFieldScreenRenderLayoutItem(fieldManager.getOrderableField(IssueFieldConstants.TIMETRACKING)).isShow(getIssueObject()); } In my tests, I do not success to encounter a Null ! I will keep the TrackingVisible != false in next releases Regards Vincent
          Hide
          bob.swift Bob Swift added a comment -

          The problem occurs even after numerous jira server restarts, so it is hard to imagine this being a tomcat issue. With timeTrackingVisible != false working implies that timeTrackingVisible is null and would point to some sort of initialization problem.

          Show
          bob.swift Bob Swift added a comment - The problem occurs even after numerous jira server restarts, so it is hard to imagine this being a tomcat issue. With timeTrackingVisible != false working implies that timeTrackingVisible is null and would point to some sort of initialization problem.
          Hide
          vthoule Vincent Thoulé added a comment -

          Hi Oksana, Bob,

          The applied solution let me know what could be the root cause ...

          My latest test :
          I made some changes in view_timetracking.jsp, and do not reproduce your issue.
          The both changes timeTrackingVisible != false and timeTrackingVisible == true are valids.

          It appears that your issue seems to be linked to Tomcat (re)compilation.
          I am not sure which exact scenario you encountered

          Context :

          • viewissue.jsp
          • view_timetracking.jsp is included in viewissue.jsp

          Minyaa Installation starts

          • viewissue.jsp modified by Minyaa Core
          • view_timetracking.jsp modified by Minyaa Time
          • J2EE Server may have started to recompile viewissue.jsp and its include before than view_timetracking.jsp is modified, and does not perform another recompilationm when view_timetracking.jsp is modified.

          I will try to implement a fix in next release, but as I did not successed to reproduce the error (the context should depends on Tomcat release, JVM release and/or Host machine capacities), I won't be able to confirm the correction.

          Then you can rollback to minyaa's modification. It should work fine.

          Regards
          Vincent

          Show
          vthoule Vincent Thoulé added a comment - Hi Oksana, Bob, The applied solution let me know what could be the root cause ... My latest test : I made some changes in view_timetracking.jsp, and do not reproduce your issue. The both changes timeTrackingVisible != false and timeTrackingVisible == true are valids. It appears that your issue seems to be linked to Tomcat (re)compilation. I am not sure which exact scenario you encountered Context : viewissue.jsp view_timetracking.jsp is included in viewissue.jsp Minyaa Installation starts viewissue.jsp modified by Minyaa Core view_timetracking.jsp modified by Minyaa Time J2EE Server may have started to recompile viewissue.jsp and its include before than view_timetracking.jsp is modified, and does not perform another recompilationm when view_timetracking.jsp is modified. I will try to implement a fix in next release, but as I did not successed to reproduce the error (the context should depends on Tomcat release, JVM release and/or Host machine capacities), I won't be able to confirm the correction. Then you can rollback to minyaa's modification. It should work fine. Regards Vincent
          Hide
          bob.swift Bob Swift added a comment -

          Oksana's changed worked for me too! And the following also worked:

          && /timeTrackingVisible != false
          

          I also have time tracking field on all relevant displays.

          Show
          bob.swift Bob Swift added a comment - Oksana's changed worked for me too! And the following also worked: && /timeTrackingVisible != false I also have time tracking field on all relevant displays.
          Hide
          vthoule Vincent Thoulé added a comment -

          Thks

          Yes, I made the test and do not success to reproduce the issue.
          I will make a new test with Time plugins only.

          Bob (MYAA-511) encountered the same trouble with the Full edition!

          Show
          vthoule Vincent Thoulé added a comment - Thks Yes, I made the test and do not success to reproduce the issue. I will make a new test with Time plugins only. Bob ( MYAA-511 ) encountered the same trouble with the Full edition!

            People

            Assignee:
            vthoule Vincent Thoulé
            Reporter:
            oksana Oksana Morozhenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.75h
                0.75h