Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-98615

SLA due date remaining time is calculating wrong

    Details

      Description

      Summary:
      After an SLA target is triggered, the system should inform the SLA due date and remaining time, or time overdue, at the process item detail modal, but it is showing a wrong time.

      Steps to Reproduce:

      1. Go to Control Panel > Workflow > Process Builder
      2. Assign workflow Single Approver to asset type Blogs Entry
      3. Go to Control Panel > Workflow > Metrics and select Single Approver
      4. Set up a new SLA named "Total Completion", with start at the beginning of the process and stop at the end, with 5min duration time;
      5. Go to Content and Data > Blogs and submit a new post for publication
      6. Wait 2min;
      7. Go to Control Panel > Workflow > Metrics and select Single Approver
      8. Click on Total Pending card to go to All Items page
      9. Click on the process item for the blog post you have created and check the SLA due date remaining time;

      Actual Results:
      The SLA due date remaining time is showing "4d 12h 02min left" (see attached image).

      Expected Results:
      The remaining time should be calculated by looking at the time from now until due, taking into account any pauses. For the example described here, where the SLA is 5min and you are checking it 2min after the trigger started counting, the remaining time should read "3min left". The implementation should consider the acceptance criteria from the following story https://issues.liferay.com/browse/LPS-92053, as described bellow:

      • The Due Date by SLA will group SLAs into Open or Resolved and provide a summary for the total number of entries for each group next to the section title:
        • "Open" means an active SLA target whose metric has not yet been completed;
          • Each due date will have an icon according to the status (On Time or Overdue), SLA name, due date and remaining time;
          • When an SLA is paused, the SLA status will be related to the moment when it triggered the pause timer;
            • Instead of due date, the UI will inform "(SLA Paused)" sentence next to the SLA name;
        • "Resolved" is one whose metric has been completed;
          • Each due date will have an icon according to the status (On Time or Overdue), SLA name, due date and resolution status (resolved on time or overdue);

      Environment:
      Master
      Commit: 68d985f514fbc44626c930cb25d02ef2da467a26
      Base Branch Commit: e7113889bc260b772f179ccab1a7488ca39bbeff
      Updated on: Mon Jul 22 22:51:21 2019 -0700

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 3 weeks ago

                Packages

                Version Package
                7.2.10 DXP FP1
                7.2.X
                7.2.1 CE GA2
                Master