Ability to capture comment posted by reporter/assignee

Pavan Kumar November 29, 2015

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

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2015

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();

 

 

TAGS
AUG Leaders

Atlassian Community Events