Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-2939

ScriptRunner scripts for Automation don't run without providing issues

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: 5.4.12
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Critical Points:
      0

      Description

      When creating a scheduled automation rule, and executing a ScriptRunner script as the action, using the "simply run the conditions and actions without providing issues" option doesn't run the script.

      Steps to reproduce:

      1. Create a new scheduled automation rule and select "simply run the conditions and actions without providing issues"
      2. Select "Execute a ScriptRunner script" as the action, and create a log statement
      3. Save the rule and run it, see that the statement has not been logged

      The script does actually run if "run a JQL search and pass results to subsequent conditions and actions" is selected. It seems that this may be because these scripts are run by iterating through a given list of issues and calling the script once per issue. If no issues are passed, as with "simply run the conditions and actions without providing issues", then the script is never run.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              twortham Tiffany Wortham
              Reporter:
              twortham Tiffany Wortham
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: