Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-3554

GreenHopper Task Board Gadget Not Able to Handle "hour per day" with Decimal Value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.8.4
    • 5.6.8, 5.7, 5.7.1
    • Gadget

    Description

      If the value of "The number of working hours per day" consist of decimal ( e.g 8.4), stack trace below will be thrown after adding GreeHopper Task Board Gadget ,and default value (8 hours ) will be used instead:

      2011-08-18 17:10:15,024 http-8080-3 ERROR cyrill.ruettimann 1030x33x1 6s2dse 0:0:0:0:0:0:0:1 /rest/greenhopper/1.0/task-board/generate.json [greenhopper.service.team.GreenHopperTeamAllocationProvider] Unable to fetch hours per day. Using 8 as default
      java.lang.NumberFormatException: For input string: "8.4"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      	at java.lang.Integer.parseInt(Integer.java:458)
      	at java.lang.Integer.parseInt(Integer.java:499)
      	at com.atlassian.greenhopper.service.team.GreenHopperTeamAllocationProvider.getSecondsPerDay(GreenHopperTeamAllocationProvider.java:89)
      	at com.atlassian.greenhopper.service.team.GreenHopperTeamAllocationProvider.getTimeAllocation(GreenHopperTeamAllocationProvider.java:77)
      

      Steps to replicate

      1. Set "The number of working hours per day" to 8.4 in Time Tracking setting.
      2. Add GreenHopper Task Board Gadget to Dashboard
      3. Stack Trace above will be thrown in the log.

      Finding

      • Affected GH 5.6.1 to GH 5.7.1
      • Planning board and Task Board under Agile Tab handle this situation correctly and no error thrown in log.

      Attachments

        Activity

          People

            sclowes Shaun Clowes (Inactive)
            vkgan Gan VoonKiat
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: