Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
hello Everyone,
I don't know if i miss something or, but in the template workflow interface we can save notification for roles. I try it and it doesn't work. When you look into code there nothing to do that just a comment on line 146 of maestro_notification.class.php
$query->condition('a.notify_type', MaestroAssignmentTypes::USER, '='); //@TODO: add support for ROLE and GROUP types
Comment | File | Size | Author |
---|---|---|---|
#1 | role-notifications-1195216-1.patch | 2.24 KB | bhauff |
Comments
Comment #1
bhauff CreditAttribution: bhauff commentedI have worked on implementing support for sending notifications to all users in the roles selected in the workflow task editor. This patch adds another query to get rows with a notify_type of MaestroAssignmentTypes::ROLE. It then does one more query per returned row to grab the users of the role. Finally, it appends the users with appropriate maestro variables to the original result. I am sure there are more optimized solutions, however, this patch has enabled our Drupal site to utilize this advertised feature of Maestro.
The patch was applied against the master branch, but was also tested against the 7.x-1.1 release.
Comment #2
wimds CreditAttribution: wimds commentedI get no results when trying to notify (email) my OG members when a task is assigned to their OG.
Is this patch also working for OG?
Comment #3
_randy CreditAttribution: _randy commentedOk, I see -- the issue for OG notifications was posted recently as well. Will look in to it along with the role issue above.