Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-1029

The Automation Audit log failure message doesn't have additional details about failure reasons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 9.1.1
    • Actions
    • None
    • Severity 3 - Minor

      Issue Summary

      In case the A4J rule contains ScriptRunner's "Execute a ScriptRunner Script" action and Actor user doesn't have sufficient permissions for executing it (require Jira administrators global permission), rule execution will fail.

      However, logs will not report any meaningful message (even with tracing enabled), and the rule's Audit log will just report a FAILURE event without any additional information.

      (I) Please note that prior to A4J 9.1.1 such rules were able to be executed/completed successfully even without granting Actor Jira administrators global permission. However, this 3rd-party action always required Jira administrators permission although it wasn’t properly/completely validated in previous versions.

      Steps to Reproduce

      1. Create any A4J rule. The rule could have any trigger/action configuration and the only requirement it should include "Execute a ScriptRunner Script" action. It doesn't matter whether the action will run an external script or an inline one.
      2. Set as rule's Actor a user account without Jira administrators global permission.
      3. Execute the rule.

      Expected Results

      Audit log and Jira application logs should have a sufficient message that explains the reason for automation failure (lack of required permission)

      Actual Results

      Although the rule's execution failed, logs and audit log data did not provide detailed information helpful for troubleshooting.

      Workaround

      Currently, there is no known workaround for this behaviour. A workaround will be added here when available.

        1. a4j_failure_audit_log.png
          143 kB
          Alexander Artemenko

            Unassigned Unassigned
            e7e12f16f891 Alexander Artemenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: