Uploaded image for project: 'JIRA Components'
  1. JIRA Components
  2. JIRA-136

Require the server and the query of the JIRA chart and count macros and show them first

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 11.1.8
    • None
    • Unknown

    Description

      The JIRA chart and count macros cannot render without a Jira server, given by its URL or by the id of a server configured in the administration, and the grid chart cannot render without a JQL query or a filter. Yet the Edit Macro dialog shows these parameters as optional fields, in tabs placed after the optional parameters, so a minimal insertion gives an error box.

      The server parameters are declared once, in AbstractJIRAMacroParameters.java, which the JIRA macro shares, and the query ones in AbstractChartMacroParameters.java. JIRA-128 asks for the same change of the server parameters for the JIRA macro, and JIRA-131 for the URL format.

      • Server: put URL and id in one mandatory feature, with @PropertyFeature(value = "server", mandatory = true), so that the Quick Actions open the dialog on it, and show their group first. JIRA-80, a select listing the configured servers, and JIRA-37, a default server, would make it a single choice.
      • Query: show the Query group before the optional parameters, and put query and filterId in one feature, mandatory for the grid chart, which fails with neither. The pie and created versus resolved charts render every issue of the server without them.
      • Filter id: declare its format, a number optionally prefixed with "filter-", and report an invalid one, instead of the raw gadget error of JIRA.
      • Invalid URL: the Java message "no protocol: notaurl" should say that the URL is invalid. Declaring the URL format is JIRA-131.

      Depends on

      • JIRA-80, for the select of the configured servers.
      • XWIKI-25287, without which the Edit Macro dialog does not enforce the declared formats.

      KOs covered

      Macro Criterion Parameter Problem
      jiraBiDimensionalGridChart C7 alternatives URL, id Two ways to give the server, neither required, while the macro fails without one.
      jiraCount C7 alternatives URL, id Two ways to give the server, neither required, while the macro fails without one.
      jiraCreatedVsResolvedChart C7 alternatives URL, id Two ways to give the server, neither required, while the macro fails without one.
      jiraPieChart C7 alternatives URL, id Two ways to give the server, neither required, while the macro fails without one.
      jiraBiDimensionalGridChart C5 groups URL, id The Instance tab comes after the Optional parameters tab, although nothing renders without it.
      jiraCreatedVsResolvedChart C5 groups URL, id The Instance tab comes after the Optional parameters tab, although nothing renders without it.
      jiraPieChart C5 groups URL, id The Instance tab comes after the Optional parameters tab, although nothing renders without it.
      jiraBiDimensionalGridChart C5 groups query, filterId The Query tab comes after the Optional parameters tab.
      jiraCreatedVsResolvedChart C5 groups query, filterId The Query tab comes after the Optional parameters tab.
      jiraBiDimensionalGridChart C7 alternatives query, filterId Two ways to give the issues, neither required, while the grid fails with neither.
      jiraBiDimensionalGridChart C13 constraints filterId A number, optionally prefixed with "filter-", with no declared format: abc gives "Error code = [500], Error message = [Unknown error]" with the gadget URL.
      jiraCreatedVsResolvedChart C13 constraints filterId A number, optionally prefixed with "filter-", with no declared format: abc is sent to JIRA and gives "JIRA returned an error of the request".
      jiraPieChart C13 constraints filterId A number, optionally prefixed with "filter-", with no declared format: abc gives "Error code = [404], Error message = [Unknown error]" with the gadget URL.
      jiraBiDimensionalGridChart I2 zero-config A minimal insertion renders "No JIRA Server found. You must specify a JIRA server..." in an error box.
      jiraCount I2 zero-config A minimal insertion renders "No JIRA Server found. You must specify a JIRA server..." in an error box.
      jiraCreatedVsResolvedChart I2 zero-config A minimal insertion renders "No JIRA Server found. You must specify a JIRA server..." in an error box.
      jiraPieChart I2 zero-config A minimal insertion renders "No JIRA Server found. You must specify a JIRA server..." in an error box.
      jiraCount E2 errors URL url="notaurl" gives the Java message "no protocol: notaurl".

      Impact found on macro fluidity

      These 28 KOs come from the WYSIWYG usability audit of the macros, applied to JIRA Macros 11.1.8 on XWiki 18.8.0, under the criteria C5 groups, C7 alternatives, C13 constraints, I2 zero-config and E2 errors of its usability criteria. Rows listing two parameters stand for one KO per parameter.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: