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

AQL validation error 'Unable to use the provided AQL. Check your Query and try again.' in automation rules

XMLWordPrintable

      Issue Summary

      • Users with access to 'Assets' (without the Jira Admins permission) are encountering an AQL validation error in Jira Automation, despite the AQL being valid in Assets advanced AQL filters.
      • The error message states 'Unable to use the provided AQL. Check your Query and try again.'

      Steps to Reproduce

      1. Navigate to the automation rule.
      2. Try editing an Assets custom field in "Edit Work Items" component using an AQL query. For example, use the query: Name Like "<object name>
      3. Users without the Jira Administrators permission receives the error: Unable to use the provided AQL
      4. This doesn't work even if the user is a project administrator.

      Expected Results

      The AQL query should work if the user has acess to Assets and is able to use the same AQL query in Assets advanced filter.

      Actual Results

      • The query fails with the error 'Unable to use the provided AQL. Check your Query and try again.'

      • The HAR trace shows the following error:

      {
          "errors": [
             

      {             "errorMessage": "You must be an administrator to perform this action"        }

          ],
          "reasonKey": "cmdb.admin.permission.error",
          "reasonCode": "403"}
       

      Workaround

      • Provide the Jira Administrator permissions to the user.

        1. Query not working in the automation rule.png
          111 kB
          Nishanto Das
        2. Query working in the Assets Advanced AQ filter.png
          96 kB
          Nishanto Das
        3. AQL Validation Error.har
          42 kB
          Nishanto Das

              Unassigned Unassigned
              46bc1338156a Nishanto Das
              Votes:
              16 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: