Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-61714

Re-implement or add the context back into the filter-results-gadget's source code.

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Problem Definition

      Since JIRA 7 it's no longer possible to have custom CSS/JS for a custom field within a JIRA "Filter Results" gadget that is used in confluence.

      • jira-gadgets-plugin-6.4.2/gadgets/filter-results-gadget.xml
        <![CDATA[
                #requireContext("com.atlassian.jira.gadgets:autocomplete")
                #requireContext("jira.webresources:issue-table")
                #requireResource("com.atlassian.jira.gadgets:g-filter-results")
                #includeResources()
        
                <script type="text/javascript">
        
      • jira-gadgets-plugin-7.0.5/gadgets/filter-results-gadget.xml
        <![CDATA[
                #requireResource("com.atlassian.jira.gadgets:autocomplete")
                #requireResource("jira.webresources:issue-table")
                #requireResource("com.atlassian.jira.gadgets:g-filter-results")
                #includeResources()
        
                <script type="text/javascript">
        

      According to https://stash.atlassian.com/projects/JIRASERVER/repos/jira/commits/2ec9538e19dda08a44ac82dd20c7c05e4da363e2#jira-components/jira-plugins/jira-gadgets-plugin/src/main/resources/gadgets/filter-results-gadget.xml, the reason the change was implemented was because the gadget requires web-resources correctly from opensocial and none of it were contexts but resources and it shouldn't have worked.

      However since the gadget is no longer using any contexts, it's no longer possible to inject Resources into this gadget

      Suggested Solution

      Implement an existing or new context

              Unassigned Unassigned
              lsaw@atlassian.com Leon (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: