Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Scriptrunner Web Panel javascript?

John Hastings-Kimball
Contributor
February 26, 2021

i've built a web panel that generates a "gantt view" of issues related to a single issue. All is working wonderfully, except that in some cases the content is too big to display in the left panel of a Jira issue. 

not enough room.png

 

as you can see i've inserted a button at the top right of the web panel that i'd like to hook up a js function to expand/collapse the panel to a full-screen view and then back to its original size. Is there a way to do this in the panel itself or do i have to load js files separately? 

 

Many thanks for your input!

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2021

Hi @John Hastings-Kimball I remember we used dialog to display the data in expanded view and it looked really nice. You can use AUI component and there is nice documentation how to use it here:

https://aui.atlassian.com/aui/9.1.4/docs/dialog2.html

John Hastings-Kimball
Contributor
March 1, 2021

@Martin Bayer _MoroSystems_ s_r_o__ did you launch this dialog from a SR Web Fragment and populate the dialog with the content already in the fragment? ideally i want to display the content in the screen but support an expanded view without having to re-generate the content. Was hoping to just expand the exisiting div. 

Suggest an answer

Log in or Sign up to answer