}
// Set the completion date, this allows Mylyn mark the issue as
// completed
// There is no API for this so we make an educated guess
State state = issueEntry.getState();
if (!data.isNew() && Value.CLOSED == state.getValue()) {
// find the last comment that set the issue status to the current
// value
// it would be better to find the last comment to set that state to
// closed
// but as long as we can't do that this will have to do