-
Bug
-
Resolution: Unresolved
-
Low
-
Severity 3 - Minor
-
Issue Summary
The 'Create work item' action fails to create a ticket and populate the Assets field with below error when rule is triggered with 'Scheduled' trigger:
Unable to create work item
Validation failed for Insight object (customfield_xxxxx)
Steps to Reproduce
- Create an automation rule:
- Trigger: Scheduled
- Actions: Create work item >> select an Assets object field to populate with AQL:
Name in ("Demo")
- Execute the rule.
Expected Results
The rule works successfully and the ticket is created & Asests field is populated
Actual Results
The rule fails with below error:
Unable to create work item: Validation failed for Insight object (customfield_xxxxx)
Workaround
Add further filtering to the AQL query that the automation rule is executing, so that it filters out those Objects that would not validate against the Assets custom field. Such as add Object type to the AQL like:
objectType = "object type1" AND Name in ("Demo")
Refer to the KB article: Automation rule fails to create issue due to an Assets custom field validation error
Or, Update the rule trigger if possible. For example, use 'Field value changed' trigger