Lines 938-945
Link Here
|
938 |
} else { |
938 |
} else { |
939 |
String operationId = getOperationId(taskData); |
939 |
String operationId = getOperationId(taskData); |
940 |
String newComment = getNewComment(taskData); |
940 |
String newComment = getNewComment(taskData); |
941 |
// do normal workflow all the time |
941 |
|
942 |
if (!JiraRepositoryConnector.isClosed(issue) |
942 |
// if only comment was modified do not do the workflow |
|
|
943 |
// otherwise do the whole workflow |
944 |
if (changedAttributes.size() == 1 |
945 |
&& changedAttributes.iterator().next().getId().equals(TaskAttribute.COMMENT_NEW)) { |
946 |
client.addCommentToIssue(issue, newComment, monitor); |
947 |
} else if (!JiraRepositoryConnector.isClosed(issue) |
943 |
&& taskData.getRoot().getMappedAttribute(IJiraConstants.ATTRIBUTE_READ_ONLY) == null) { |
948 |
&& taskData.getRoot().getMappedAttribute(IJiraConstants.ATTRIBUTE_READ_ONLY) == null) { |
944 |
client.updateIssue(issue, newComment, monitor); |
949 |
client.updateIssue(issue, newComment, monitor); |
945 |
} else if (newComment.length() > 0) { |
950 |
} else if (newComment.length() > 0) { |