Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-17826

Assets Automation: 'Create work item' action fails with Validation error for Assets object for 'Scheduled' trigger

XMLWordPrintable

      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

      1. Create an automation rule:
        1. Trigger: Scheduled
        2. Actions: Create work item >> select an Assets object field to populate with AQL:
          Name in ("Demo") 
      1. 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

              Unassigned Unassigned
              ccd19600178e Anchal Chopra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: