We noticed that in Learning, when assigning an item to a user with assignment type "Optional" but with a due date, the system sends an email notification with "Mandatory learning activities are overdue". Since we find this confusing, we wanted to ask if the system can differentiate between Optional or Mandatory in the mails at all and if it is possible to adjust this accordingly so that when an assignment is optional with a due date, "optional learning activities are overdue" is displayed in the mail.
The Notification template sent to users when an Item is overdue is the ApmTrainingOverdue.
This Notification will be sent to Mandatory and Optional courses, not being differentiated between mandatory or optional.
The standard email notification template does not have the information that the Item is mandatory or not, maybe the template on your environment is customized.
With that said, the recommendation is to reach out a Certified Partner or SAP Professional Services for assistance with custom templates (KBA https://userapps.support.sap.com/sap/support/knowledge/en/2635377)