Here is the Rule I'm attempting to run (Closed):
Event:
After saving a new comment of type Repair comment

Conditions:
Content is of type -> Parameter: Content: [comment:node], Content types: Repair

Actions:
Set a data value -> Parameter: Data: [comment:node:field-scheduled], Value: - None -
Set a data value -> Parameter: Data: [comment:node:field-status], Value: Closed

But it keeps getting overridden by this Rule (Ready for Pickup):
Event:
After updating existing content of type Repair

Conditions:
Data comparison -> Parameter: Data to compare: [node:field-invoiced], Data value: Yes

Actions:
Set a data value
Parameter: Data: [node:field-status], Value: Ready for Pickup

I'm not sure why it happens. I've tried updating my version of Rules. Even when viewing the Rules log it shows the Closed rule runs second in the timeline. I've also tried adding the same conditions to the Closed rule, still not firing. The only time this works is when disabling the Ready for Pickup rule. It seems that the Updating Content has a higher priority somehow.

Any help would be appreciated. Thanks!

Comments

degraw’s picture

I solved my own issue. Here's how...

  1. Added a boolean radio box for my content type
  2. Added a Rule that made the status change to "Closed" when the boolean was true
  3. Amended my (Closed) rule to include make the boolean true and removed the "Set a data value -> Parameter: Data: [comment:node:field-status], Value: Closed"
degraw’s picture

Status: Active » Closed (works as designed)