Hello,
I have a strange behavior when we add comments. The user preference is using “Do not notify me.” for his own comments.
If the comment has been added directly into Jira, this works fine and no notification is sent.
However, if it is done by email handler running script runner with this API, he gets notification.
commentManager.create(foundIssue, jira_reporter, body, true)
NOTE: He is assignee and part of the watcher list
Hi @Ahmed Osman
Could you please share the entire code you are using for the Email Handler and a print screen of your Email Handler configuration?
Thank you and Kind regards,
Ram
Here is the block that set the comment:
if (search && search.total != 0) {
def foundResult = search.getResults()[0]
def key = foundResult.getKey()
def foundIssue = issueManager.getIssueObject(key);
// Found. Add a comment
def index = body.indexOf("From:")
if (index != -1) body = body.substring(0,index)
index = body.indexOf("-----Original Message-----")
if (index != -1) body = body.substring(0,index)
commentManager.create(foundIssue, jira_reporter, body, true)
Watchers.each { watcherManager.startWatching(it, foundIssue) }
add_attachement(jira_reporter, foundIssue)
changeAssignee(foundIssue, assignee)
changeStatus(foundIssue, action)
return
}
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.