Event "Issue commented" Question about email content

C_ Faysal
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 12, 2012

Hey guys..

i would like to know why a transition that gets hit by an autotransiton listener and fires the "Issue commented" Event doesn's show the comment that was recently added in the email that will get send

i got a customized workflow for a support like project where an assigned developer can set the issue in a waiting state as a customer feedback is requiered to proceed.

in the waiting state all the customer has to do is adding his comment.

there is a hidden transition called "reply" wich will be hit programmatically

an autotransition listener will automatically update the issue...set assignee back to last role member who had the issue before

atlassian support told me that i need to set up 2 listeners with different action ids to get informed about other updates like attachment added etc.. (2 & 6) updated & commented

all this works as i expected but one thing is missing

if the customer comments on the issue the listener correctly moves back the issue and fires the event "issue commented"

thats all...the mail has no furher content. so i am forced to open the issue in the browser first to see what was added to the issue.

how to put the added comment inside the email in that case?

10 answers

1 accepted

0 votes
Answer accepted
C_ Faysal
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 20, 2012

ok i think i will open a new support request about this one..

thank you Bhushan for participating

Bhushan Nagaraj
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 21, 2012

Thanks Faysal. Hope you get it resolved.

C_ Faysal
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.
April 11, 2013

my mistake was switching assignees via transition postfunctions...

0 votes
C_ Faysal
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 12, 2012

yes i thought i did so cause the transition "reply" has the postfunction "fire issue commented event"

it's not what you are talking about?

0 votes
Bhushan Nagaraj
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 12, 2012

From your screenshot it looks like you are using the Jira Toolkit Plugin's AutoActionListener.

there is a hidden transition called "reply" wich will be hit programmatically

Is this your code? You can even dispatch an event from here.

0 votes
C_ Faysal
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 12, 2012

there it is already...

0 votes
C_ Faysal
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 12, 2012

I would check the listener and fire the ISSUE_COMMENTED event from the listener itself.

how can i get this done?

thank you

0 votes
C_ Faysal
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 12, 2012

i think you're right.

the listener is configuered like this:

0 votes
Bhushan Nagaraj
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 12, 2012

I would check the listener and fire the ISSUE_COMMENTED event from the listener itself.

If you look at the template for issue_commented available in WEB-INF/classes/templates/email you will see how it requires a comment object.

So you can use one of the methods here that accepts a comment as a parameter and give it a shot.

http://docs.atlassian.com/jira/4.3.4/com/atlassian/jira/event/issue/IssueEventDispatcher.html

(I am unable to access the latest docs from the Atlassian site so the above doc is version 4.3.4)

0 votes
Bhushan Nagaraj
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 12, 2012

if the customer comments on the issue the listener correctly moves back the issue and fires the event "issue commented"

The autotransition listener is a custom listener correct? I am assuming this is the listener that will check if the

eventTypeId.equals(EventType.ISSUE_COMMENTED_ID)

Are you firing the ISSUE_COMMENTED event from this listener?

0 votes
Bhushan Nagaraj
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 12, 2012

Hi Faysal,

Are you passing the comment in the dispatchEvent method?

0 votes
C_ Faysal
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 12, 2012

no just by hittin "Comment" below the lssue Activity

as i said usually it works just fine if you comment on the issue using this button...it's all good.

email will contain "some one commented on ACB-123" and shows the added comment

but if the listener grabs the action id from a hidden transition...the email only shows

"some one commented on ACB-123"

the comment is not contained

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events