Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-13257

Stop allowing negative worklog values being entered

XMLWordPrintable

      It is currently possible to enter negative worklog values. These values do not make sense and cause problems when the worklog is rendered and time is aggregated.

      Currently negative worklog and duration (the issue's estimates and time spent) values appear as blanks (not rendered correctly) so it is difficult to see what value was actually entered.

      The solution is to fix DateUtils in atlassian-core to not accept negatives and instead throw InvalidDurationEx.

      To reproduce, you must use a negative number without any character type indicator ("-100" not "-100s"). The value is interpreted as a negative number of seconds.

              jpendleton Justus Pendleton (Inactive)
              jed Jed Wesley-Smith (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

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