Merging issues failed with exception

Issue #3 resolved
Verhás István repo owner created an issue

I tried to merge issues as an admin but failed with the following exception that i have no permission to delete comment: {{{ #!java 2012-01-18 16:15:56,555 http-8080-11 ERROR admin 975x8624x1 1ybxipr 172.31.11.95,172.31.11.104 /secure/CommentAssignIssue.jspa [atlassian.jira.workflow.SimpleWorkflowManager] Caught exception while attempting to perform action 141 from workflow 20543 on issue 'BLA-6' com.opensymphony.workflow.WorkflowException: Errors: {} Error Messages: [No permission to delete comment: 28251] at com.verhas.jira.plugin.merger.MergeIssuesFunction.mergeComments(MergeIssuesFunction.java:114) at com.verhas.jira.plugin.merger.MergeIssuesFunction.execute(MergeIssuesFunction.java:75) at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:869) at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1265) at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:567) at com.atlassian.jira.workflow.SimpleWorkflowManager.doWorkflowAction(SimpleWorkflowManager.java:312) at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:505) at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:513) at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:197) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:74) }}}

Comments (2)

  1. Verhás István reporter

    Actually the comment is deleted in the name of the author of the comment and not the logged in user. It should try to delete on the name of the author of the comment or the logged in user and should not fail merge even if unable to delete. So deleting comments and/or attachments should be optional.

  2. Log in to comment