How to call a java function on click of web item

Michael Tan February 3, 2020

Hi, I am working on building a jira plugin. I have created a web-item on the issue page, and I want to call a java function located in my plugin package when I click on the web-item. How can I accomplish this?

I have seen this post on call java function on add comment button.

https://community.atlassian.com/t5/Answers-Developer-Questions/Can-I-call-java-function-on-add-comment-button/qaq-p/474963

However, I am not sure where to write the event listener. 

1 answer

1 accepted

1 vote
Answer accepted
Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2020

Hello @Michael_Tan

I can think of two ways to do this. 

If your web-item displays content in a glance, you can set the trigger on render (when the glance is open). If it renders a button or something a like, you can trigger directly from you button code

Suggest an answer

Log in or Sign up to answer