Comments

swarad07 created an issue. See original summary.

vdsh’s picture

I was thinking of using rules to do so. What do you think?

We can trigger events after each new claim / claim accepted / claim declined, and use Rules to send the email. Possibly, we can also add actions (eg: auto-accept or auto-decline a claim)

vdsh’s picture

Status: Active » Fixed
StatusFileSize
new1.78 KB
new2.29 KB

It is actually working out of the box with Rules to send email notification after a new claim request has been made, or it has been approved or declined. See examples with status message or email sent. You can also access the claim / linked node / claiming user properties from rules, it's really powerful.

For Accept / Decline, the reaction is actually "when the claim is updated and its status is Accepted / Declined", but I think it's acceptable as you probably wouldn't edit a claim after it is accepted / declined without changing the status

Note: you can also auto-accept or decline by changing the status with rules, but the cache is then not properly reapplied, I'll see if we need to do a custom rules action.

In short, I think we can set this ticket as "Fixed" without having to do anything

vdsh’s picture

StatusFileSize
new2.21 KB

You can actually auto-accept if using rules, see configuration attached. I was missing the fact that you needed to set the node's uid to the one of the claim, which automatically resaves the node and update the cache.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.