Web panels can be used to add HTML snippets to parts of a page. They could be used to display additional information on the current wiki page, or JIRA issue etc. See also web panels in the Atlassian documentation.
As a simple example, let’s imagine we want to inform editors of certain Confluence spaces or JIRA projects that the space is to be deprecated, and we’d prefer that they updated a page in another space.
Choose the Show a web panel built-in script, and configure it as follows:
|The weight field is optional, and it only takes positive integers. Lower weights will make the panel be displayed at the top of its section. If blank it will appear at the end of its section.|
For the provider class/script try pasting in the following, either inline or into a file, and pointing to the file:
[.thumb] image::image/web-panel-banner.png NOTE: You must write to the provided Writer object, not just return a String. === Conditions // todo, requires converting everything to com.atlassian.confluence.plugin.descriptor.web.DefaultWebInterfaceContext, not ready Conditions are largely the same as for link:WebItem.html#_conditions[web item conditions].
Have questions? Visit the Atlassian Community to connect, share, and learn with other Atlassian users and experts, including Adaptavist staff.
Want to learn more? Check out courses on Adaptavist Learn, an online platform to onboard and train new users for Atlassian solutions.