Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-61714

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • None
    • None
    • None
    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? 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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: