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

This widget could not be displayed.

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...

This widget could not be displayed.

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

This widget could not be displayed.

Hi Faysal,

Are you passing the comment in the dispatchEvent method?

This widget could not be displayed.

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?

This widget could not be displayed.

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)

This widget could not be displayed.

i think you're right.

the listener is configuered like this:

This widget could not be displayed.

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

how can i get this done?

thank you

This widget could not be displayed.

there it is already...

This widget could not be displayed.

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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

89 views 13 7
Join discussion

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