ScriptRunner’s Script Fragments feature allows you to customize your Jira UI by adding buttons or displaying web content on a page.
You can use the Script Fragments feature to add web panels to the Jira issue UI, allowing you to display external content from within your Jira. This is very useful if you have content relevant to your Jira issues in an external system and you want to bring this content straight into your Jira issues. You can use Web Panels to display additional information on the current wiki page, or Jira issue, or to add HTML snippets to parts of a page.
For example, you can display your systems status page so your JSD users don’t have to leave Jira. You can also use Script Fragments to show scripted content, such as buttons, which users can interact with. An example of this might include using a Script Fragment to display a scripted button that searches Confluence for the title of the Jira issue.
For more information on web panels, you can refer to Atlassian's documentation.
Due to certain limitations, no more than two fragments can be displayed in a single location.
Create a Script Fragment
Navigate to ScriptRunner-Script Fragments.
Click on Add fragment.
Select the relevant project from the Projects drop down list.
- Select the type of fragment you would like to add from the Fragment type drop down list.
Select the location where the script fragment will appear.
Select the Source drop down list and choose from:
The Single URL option to link a webpage to your web item, displaying it in a pop-up box where the web panel is located.
If you’ve selected the Single URL option, add your target URL
Click Save changes.
Web Panel Display with External Resource
Web Panel Display with Specified HtmlCssJs Resources