This feature was introduced in
SAM-1597, it works fine but the comments are not being sended if the "Send assessment score to Gradebook immediately" option is selected AFTER the comments are saved.
Steps to reproduce:
1. Enter as instructor
2. Create an assessment and publish it
3. Enter as student and take the assessment.
4. Enter as instructor
5. Go Published Assessments->Scores
6. In the total scores page fill in some comments for the student that have just taken the assessment.
7. Go the settings of the published assessment
8. Select"Send assessment score to Gradebook immediately"
9. Go to Gradebook
10. The comments for the student are empty.