How to use WebSectionProvider?

I have a JIRA plugin with dynamic menu items using WebItemProvider-interface (com.atlassian.plugin.web.api.provider.WebItemProvider).

This works excellent, but only for menu items in menu, but not for menu sections.

My atlassian-plugin.xml contains plugin module for "WebItem" and it works:

<web-item-provider key="xxx" ....

                   class="package.classImplementsWebItemProvider" />

                                                 

My intention was to add a plugin module for "WebSection" into atlassian-plugin.xml.

But i don't know how.

I tried with:

<web-section-provider key="yyy" ....

                    class="package.classImplementsWebSectionProvider" />

                                                 

But it doesn't work. Maybe there is no tag: <web-section-provider.                                                

Has anyone an idea how to solve the problem with menu sections?

Thanks in advance!

2 answers

This widget could not be displayed.

Checkout this page for adding web-sections. 

https://developer.atlassian.com/jiradev/jira-platform/building-jira-add-ons/jira-plugins2-overview/jira-plugin-module-types/web-section-plugin-module

Your web-items will then point to the new web section.

This widget could not be displayed.

Thank you Jobin for your answer.

But my web sections and web items need to be created dynamically. That is, I can not define it in atlassian-plugin.xml. To create dynamic web items, there is an interface WebItemProvider, whose implementation of the method Iterable <WebItem> getItems (Map <String, Object> context) returns a list of the web items. It is working. But I still need web sections to which these web items are assigned.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

171 views 1 3
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