How does a Java Application know if a new JIRA ticket is created?

I am trying to come up with a Java application that has to monitor a JIRA project for new ticket and if ticket is created then get details about the issue described in the ticket.

I am not sure what is the best way to achieve the same. From other stackoverflow question I saw about webhooks and from the jira docs I came to know about Listeners which I believe is more like event registering and listening however I am not sure what is the best approach.