Following the "Adding you own menu items to JIRA" tutorial, I am trying to figure out how to add dynamic links to my navigation bar.
For example, I have a class that implements the interface:
public interface MyLinkManager{ Collection<MyLink> getLinks(); }
A MyLink object just has getters and setters for a String name and String url.
Is there a way to do something like this:
for (MyLink link : myLinkManager.getLinks()){ addToNavbar(link, "dynamic-section"); }
Where addToNavbar is a method that takes a link and a navbar section, and adds the link dynamically to that section?
Community moderators have prevented the ability to post new answers.
I have this covered in my book but you can also find the same code in J-favourites plugin.
https://marketplace.atlassian.com/plugins/com.jtricks.favourites
See the source. It is done using simple-link-factory
Cool! This looks very helpful. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Pablo :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.