Applying unique expander tags to a list of items to collapse in JIRA plugin

I am working on a JIRA plugin in which within velocity template I display a series of items in a list. I would like a section of the list per item to be collapsed until an icon is selected and then it expands. I tried to implement this using bootstrap resources but found that it interfied with the view workflow link. I am looking at trying to use the expander tags as defined in the hyperlink but am not seeinga way to uniquely identify a section. Any pointers on creating collapsible divs in JIRA plugins?

2 answers

1 accepted

This widget could not be displayed.

I was able to resolve this after a bit more time reviewing the AUI documentation related to expanders.


My working example is as follows

Below link that controls the expanding/collapse of the div. I'm using one of the AUI icons as defined within the <span> tags

<a id="Link" class="aui-expander-trigger" aria-controls="$count"><span class="aui-icon aui-icon-small aui-iconfont-devtools-task-in-progress">Info</span></a>

The target container that collaspses

<div id="$count" class="aui-expander-content">

$count in this case is a variable I defined within the velocity template outside of my foreach loop that ensures a unique tag for each like <div> element used in this example.

This widget could not be displayed.

Hi - since this is development related, you might want to try asking this over at: as well if you haven't already.

Hoepfully someone over there will be able to help.

Good call, apologies.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

115 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you