Hello All,
I would like to know if it is possible to capture an unique event/some other when a comment is added to a ticket by the ticket's reporter ? Currently JIRA generates 'Issue Commented' event when ever someone adds a comment to a ticket. But my requirement is to capture just the event and the comment posted by either reporter or assignee.
Thank you,
Pavan
Community moderators have prevented the ability to post new answers.
Hi Pavan,
In the event listener you can get the comment object, get the author and then compare with issue author and assignee:
ApplicationUser commentUser = issueEvent.getComment().getAuthorApplicationUser(); ApplicationUser issueCreator = issueEvent.getIssue().getCreator(); ApplicationUser issueAssignee = issueEvent.getIssue().getAssignee();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.