Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger web-item based javascript function from dot menu?

Johannes Stadler October 16, 2018

Dear Community,

I already have a working web-item button in the more menu of my Jira issue:


<web-item ...>
...
<link linkId="solman-push-button">/rest/solman/latest/push/$issue.key</link>
...
</web-item>

And the corresponding javascript handler:

AJS.$("body").on("click", "a#solman-push-button", function(){

//handling the push button
}

This works very well in the normal issue view and also on kanban boards.

But there is also the option to press "." to activate the actions menu and there my custom web item is listed, but without the given id:

Bildschirmfoto 2018-10-16 um 11.27.05.png

 

So my question would be: How can I catch this action and handle it with my javascript function?
Did anyone have this issue and already found a solution? Is there an event triggered by the menu I could listen to?

Many thanks in advance!

Best regards

Johannes

0 answers

Suggest an answer

Log in or Sign up to answer