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

How to add weight prop in a custom web panel using script runner

Guilherme Nogueira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2017

By default, new web panels (atl.jira.view.issue.left.context) are added as last element in issue view screen. Can I change it to another position using wight? It seems a field is missing in creation screen. In a raw XML I can add a new panel with this prop.


 

<web-panel key='AAAA' name='ScriptRunner generated web panel - AAAA' weight="200" location='atl.jira.view.issue.left.context' class='script:writer.write("Hello world!")'>
  <label>validation</label>
  <param name='lazy' value='true' />
</web-panel>

 

<web-panel key='AAAA' name='ScriptRunner generated web panel - AAAA' weight="200" location='atl.jira.view.issue.left.context' class='script:writer.write("Hello world!")'>
  <label>Baseline validation</label>
  <param name='lazy' value='true' />
</web-panel>

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2017

I agree it's missing the abliity to set via the UI: https://productsupport.adaptavist.com/browse/SRJIRA-2164

The workaround for now will have to be the one you are already using.

Guilherme Nogueira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2017

Thanks

0 votes
Guilherme Nogueira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2017
TAGS
AUG Leaders

Atlassian Community Events