Web Fragments won't work on project administration -> Version context menu

Hi Guys!

I would like to add new web-item to context menu of versions in project admin section:

Tried to find section using Web Fragments plugin but it’s simply won’t work.

Has anyone had a similar problem or can indicate the web-item section I should use?

I don’t think there is an entry point for this. But since it’s Jira Server, you can do it with progressive enhancement in Javascript. If you add an observer to the DOM, you should be able to detect when the menu is opened and inject your own menu item.

2 Likes

I found solution :wink:

<web-item key="version_dialog" name="version_dialog" section="atl.jira.version.admin.operations" i18n-name-key="label" weight="100">
    <label key="label"/>
    <styleClass>version-dialog</styleClass>
    <link>/secure/VersionEdit!default.jspa?versionId=${}</link>
</web-item>

Cheers!

1 Like