Field Change Trigger rule doesnt work for Project Status Field

Document ID : KB000122393
Last Modified Date : 05/12/2018
Show Technical Document Details
Introduction:
We're using Field Change Trigger rule in order to detect changes in status attribute (Using at AfterSaveItem Event trigger) for a project object, but it doesn't work. If we using other attribute like Assignee or Priority, etc... rule is evaluated correctly and actions are fired. Another strange detail is that Field Change Trigger rule is working for assignee field on Requirement item type object. Any suggestion? We're unable to open support case due to support site errors (My Case Section)
Environment:
CA ALC v3 inc 3
All platforms
Instructions:
We want to be able to send an email to the project Assignee user when the status of the project returns to “In Development”.
 
To do this, the first thing is to create a new rule type.  The “Item Assigned Notification” rule will only execute if the Assignee user is changed.  We want a similar rule, except without that restriction.  To create a new rule type:
  1. Right click on the “Item Assigned Notification” rule type and click “Copy Rule Type Object”
  2. Click File -> New -> Rule Object Type
  3. Inside the “General” tab for the New Rule Object Type, right click and select “Paste Rule Object Type”
  4. Change the new rule type object’s name to “Notification to Assignee” (or whatever title will be most convenient for you)                          
  5. Double click to select again the “Item Assigned Notification” rule type and click the “Attribute Types” tab
  6. Select all the attribute types, right click and select “Copy Attribute Type”
  7. Back on the New Rule Object Type, click the Attribute Types tab
  8. Right click and select “Paste Attribute Type”
  9. Click the “General” tab
  10. Edit the rule script by clicking on “Edit Script”
  11. Comment out the 5th line of the script that says “if (updatedFields.containsKey(“Assignee”))” by typing two forward-slashes at the beginning of the line
  12. Click the Save button to save the change to the Rule script
  13. Click File -> Save All to save the new rule type
  14. If you get a warning about open editors, click “Yes”
With our new Rule Type object defined, we can now wet up the rules needed to accomplish the original objective to send an email to the project Assignee user when the status of the project returns to “In Development”.
  1. Double click the “Project” item type to open it and click the “Rules” tab
  2. Right click on the “After Save Item” event and select Insert -> Rule Object
  3. Select rule type “Field Change Trigger”.  This will let us know if the “Status” field has changed.
  4. Select the “New Rule Object”.  Give the new rule a name and click the “Maximize” button to see its properties.
  5. Scroll to the lower half of the properties window.  Add “Status” to the Fields list, and the following condition to the Condition field.  Then click the “Save” button.
Condition = ((updatedFields.get("Status"))[0]!=null) && (updatedFields.get("Status"))[1].equals("In Development")
Then click the Save button
  1. Right click on the new “Check for Status Change” rule and select Insert -> Rule Object
  2. Select our new “Notification to Assignee” rule type
  3. Give our new rule a name
  4. Scroll to the lower half of the window and enter the text that you want to appear in the body of the email message.
  5. Then select File -> Save All from the menu
 
Now your new rules are in place.To test, open a project and change the status to In Development.Then save the project.
 
Then, check your email.You will find the email was sent.