The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to bind a request handler when a new comment is added in JIRA UI

Adolfo Casari
August 2, 2021

Hello,

What is the event type to bind when a new comment is added in JIRA?

The idea is to setup a javascript request handler whenever a new comment is added in the UI.

Thanks in advance!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Kishan Sharma
Community Champion
August 2, 2021

Hello @Adolfo Casari Welcome to the community. 

For this JIRAs built-in system event will be "Issue commented" which is triggered when an issue has had a comment added to it. Refer this link for more details.

Adolfo Casari
August 3, 2021

Hi @Kishan Sharma , I am aware of those built-in system events, but I need an event in the user Interface, so i can set a javascript request handler. 

There is this event: "JIRA.Events.NEW_CONTENT_ADDED", but this too generic, I need one that fires only when a new comment is added.

The goal is to alert the user when they post a public (external) comment in JSM, since sometimes they mistake internal for external and that commentis not visible in the JSM request in the customer portal.