First, please use code fences when posting code
Then what is the trigger? A group item. Therefore the triggering Item is the group item.
You may want to explore the Member of trigger as mentionned in the post above
Third, your post didn’t have a topic so I move it to Script and Rules