f you want to send one message to the assignee when a new defect gets created, and a different message to the assignee when a defect is reopened, a Control Flow Switch rule can be used to determine which message is to be sent?
- Condition #1 would execute only if “id < 0” (because for a new defect the id number is less than zero)
- Condition #2 would execute only if the status had been changed to “Reopened” (updatedFields.get("Status") != null && ((updatedFields.get("Status")).equals("Reopened")))
The Rule for Condition 1 is a Item Assigned Notification:
And the rule for Condition 2 would be another Item Assigned Notification
In your testing make sure that each notification rule has a completely different message so that you will know which rule is sending the message you are receiving. Once we have the structure of the rules correct we can go back and refine the messages to be exactly what you want to send. Also, make sure that all notification rules you have previously created have been deleted so that only these notification rules will be used.