Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-1938

Introduce new context for web-resourse

    XMLWordPrintable

Details

    • 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.

    Description

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

      Service Desk plugin has a number of screens but those screens does not have a context. As a result, other plugins cannot attach anything to those views like the portal page (servicedesk/customer/portal/XYZ).
      So, it will be useful to introduce a new web resource context for a portal page.

      If your plugin adds a number of screens to the application, you may find it useful to introduce a new web resource context for your plugin that your plugin web resources (or any other plugin web resource) can hook into, to be automatically included on these screens.
      To introduce a new context in your plugin Velocity templates, you can call the requireResourcesForContext() method on the WebResourceManager object from your Velocity templates:

      $webResourceManager.requireResourcesForContext("com.acme.plugin.fancy-context")

      This will include any resource in the page that specifies a context like this in its definition: <context>com.acme.plugin.fancy-context</context>.

      Attachments

        Issue Links

          Activity

            People

              422f530d75ad Arjun Ganapathy
              78e7e652d6fe Andriy Hospodarysko
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: