1. SAP S/4HANA Help Portal - Quality Management (QM): Response Profile.
Section: Quality Notifications -> Notification Processing -> Response Control -> Response Profile.
Content: The documentation states
"In the response profile
you can specify for a code group of defects... which tasks are to be performed... You can enter a task code or a task code group." This directly confirms that both task codes and task code groups are defined in the profile.
2. SAP S/4HANA Customizing Implementation Guide (IMG):
Path: SPRO -> Quality Management -> Quality Notifications -> Notification Processing -> Response Control -> Define Response Profiles.
Content: The configuration screen (transaction OQN7) for defining a response profile has dedicated fields for "Task Code Grp" (Task Code Group) and "Task Code". This provides direct evidence from the system's implementation that these two elements are defined within the profile to determine tasks.