Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-58549

Deleting a field to display (clicking on the Bin icon) or reordering fields does nothing, when editing "Filter Results" macro

    XMLWordPrintable

Details

    Description

      Issue Summary

      When editing the Jira Filter Results macro, the "fields to display" are unable to be edited. They are unable to be removed or sorted.

      Steps to Reproduce

      1. Use a Confluence instance with an application link to Jira.
      2. Create a new page and add the Jira Filter Results macro.
      3. Select the macro and click on Edit.
      4. In the preview pane, at the bottom of the list, click on the cogwheel icon and then Edit.
      5. Attempt to
        1. Remove a field from the list of Fields to display, by clicking on the bin icon.
        2. Reorder a field

      Expected Results

      The field is removed / reordered from the list.

      Actual Results

      Nothing happens, the field stays in the list.
      Check the attached video DeleteField-FilterResultsMacro.mp4 for a recording of the issue's reproduction.

      Resolution

      Upgrade Jira to the upcoming Jira 8.14 release.

      Workaround

      It is possible to remove and reorder fields using an additional plugin from Atlassian Marketplace called 'Source Editor'.

      1. In the Confluence user interface, select 'Confluence Administration' from the top right, then 'Manage Apps'
      2. Click 'Find new apps', and in the search box type in 'Source editor'.
      3. In the search results, find this one :

        (You can also find it in the Atlassian Marketplace - source editor)
        Click 'install'
      4. Wait a few seconds and close the popup that says it's installed
      5. Load the Confluence page with the problematic macro on it
      6. Edit the page (but don't click 'edit' on the macro)
      7. In the top right corner, click on the '<>' icon (Mouseover will show 'Open in source editor')
      8. The example below shows the default columns, plus a new one that I added 'Created': Type, Key, Priority, Summary, Created.
      9. The macro block itself is within the <ac:structured-macro> tag:
        <p>'Filter Results' macro added from Jira:</p>
        <p>
          <ac:structured-macro ac:macro-id="7a4a1ab1-3113-432d-8158-904056e9d433" ac:name="gadget" ac:schema-version="1">
            <ac:parameter ac:name="filterId">filter-10002</ac:parameter>
            <ac:parameter ac:name="isConfigured">true</ac:parameter>
            <ac:parameter ac:name="preferences">filterId=filter-10002&amp;num=10&amp;columnNames=issuetype%7Cissuekey%7Cpriority%7Csummary%7Ccreated&amp;isConfigured=true&amp;refresh=false</ac:parameter>
            <ac:parameter ac:name="columnNames">issuetype|issuekey|priority|summary|created</ac:parameter>
            <ac:parameter ac:name="num">10</ac:parameter>
            <ac:parameter ac:name="refresh">false</ac:parameter>
            <ac:parameter ac:name="url">http:/testmachine.atlassian.com:8080/jira/rest/gadgets/1.0/g/com.atlassian.jira.gadgets:filter-results-gadget/gadgets/filter-results-gadget.xml</ac:parameter>
          </ac:structured-macro>
        </p>
        
      1. Using the source editor, remove or rearrange the fields/columns that you wish to remove or rearrange from the macro. For example, to remove the 'Created' field, we just need to change the two lines that reference it, changing:
        <ac:parameter ac:name="preferences">filterId=filter-10002&amp;num=10&amp;columnNames=issuetype%7Cissuekey%7Cpriority%7Csummary%7Ccreated&amp;isConfigured=true&amp;refresh=false</ac:parameter>
        <ac:parameter ac:name="columnNames">issuetype|issuekey|priority|summary|created</ac:parameter>
        

        To:

        <ac:parameter ac:name="preferences">filterId=filter-10002&amp;num=10&amp;columnNames=issuetype%7Cissuekey%7Cpriority%7Csummary&amp;isConfigured=true&amp;refresh=false</ac:parameter>
        <ac:parameter ac:name="columnNames">issuetype|issuekey|priority|summary</ac:parameter>
        
      1. Click 'Apply' in the bottom-right corner of the source editor, then 'Update' to save the whole page.

      Attachments

        Issue Links

          Activity

            People

              oshen@atlassian.com Oliver Shen
              bcosta@atlassian.com Bruno Costa (Inactive)
              Votes:
              32 Vote for this issue
              Watchers:
              67 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: