Comments in Issue Updated Event

Batuhan Kandiran December 17, 2013

Hi Everyone,

I want to ask.. how can i catch latests comments added by user, but the comment must be written by using "Edit" button so it trigger issue updated event..

I tried to observe changes by using

ChangeHistoryManager historyManager = ComponentAccessor.getChangeHistoryManager();
historyManager.getChangeItemsForField(issue,"comment");

but there is no luck :(

Please Help Me. Thanks.

2 answers

1 accepted

2 votes
Answer accepted
Henning Tietgens
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.
December 17, 2013

The comment which was entered during the action that triggered the event can be read like this:

String commentBody = event.getComment().getBody();

0 votes
Batuhan Kandiran December 18, 2013

Thank you Henning. It resolved my problem.

Suggest an answer

Log in or Sign up to answer