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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my mistake was switching assignees via transition postfunctions...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
there it is already...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would check the listener and fire the ISSUE_COMMENTED event from the listener itself.
how can i get this done?
thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think you're right.
the listener is configuered like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Faysal,
Are you passing the comment in the dispatchEvent method?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.