The content of the email that the client wants to receive is the whole trail of comments between the agent and the customer.
I am thinking that every comment is stored to a field and add symbols like this "*****" on top of each comment that will serve as a division. Can I achieve such functionality through script runner?
And if yes, can I add this field as well in the post function email?
Thank you in advance!
In the post function email you can just get all comments from the issue and send them:
String comments = "";
ComponentAccessor.getAttachmentManager().getAttachments(issue). {
comments += it.getBody()
}
Hi Alexey,
Could it be that you are meaning the CommentManager and not the AttachmentManager?
I tried your code snippet, and could not get it to work (ex. the object Attachment does not have the method getBody() implemented).
Regards,
Julian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right, it must be CommentManager:)
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.