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

IndexOutOfBoundsException when viewing Overview Planning Board

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • Release 3.2.1
    • None
    • None
    • None

    Description

      IndexOutOfBoundsException is thrown when viewing the Overview Planning Board under the following use case:

      • Assuming you have a Story Points custom field
      • Modify the Story Points field to apply to every issue type except SubTask (since we never want points on subtasks)
      • In GH Planning Board config, set the Story Points to be shown in the List view of the Version Board (Default issue type of Bug is shown)
      • Click "Apply to all lines"
      • Go to the Planning Board Overview where you have at least one SubTask and you get this error:

      2008-12-08 13:55:52,628 TP-Processor16 ERROR [velocity] Method getExtraField threw exception for reference $action in template templates/greenhopper/jira/iss
      ue/list/issue-list.vm at [35,5]
      2008-12-08 13:55:52,628 TP-Processor16 ERROR [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Vel
      ocity: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
      java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at com.pyxis.greenhopper.jira.configurations.layout.ListLayouts.getOverviewField(ListLayouts.java:93)
      at com.pyxis.greenhopper.jira.configurations.layout.ListLayouts.getExtraField(ListLayouts.java:75)

      • Go back to the GH Planning Board config
      • Select SubTask in the issue type drop down.
      • Notice that "None" is now set as the extra field for the list view on the Overview Board. It was previously "Versions" before the change above.

      It appears that when a field does not apply to an issue type it creates a shorter array and therefore this exception.

      Attachments

        Issue Links

          Activity

            People

              jchuet JC
              dres Andres March (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: