Details
-
Suggestion
-
Resolution: Won't Do
-
None
-
None
-
None
-
1
-
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
- relates to
-
JRACLOUD-61714 Re-implement or add the context back into the filter-results-gadget's source code.
- Closed