Event "Issue commented" Question about email content

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

Accepted Answer
0 votes

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

thank you Bhushan for participating

Thanks Faysal. Hope you get it resolved.

my mistake was switching assignees via transition postfunctions...

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

Hi Faysal,

Are you passing the comment in the dispatchEvent method?

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?

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)

i think you're right.

the listener is configuered like this:

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

how can i get this done?

thank you

there it is already...

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.

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?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

42 views 2 4
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you