Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to call a java function on click of web item Edited

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you