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

    • Bug
    • Status: Done
    • High
    • Resolution: Duplicate
    • 5.4.12
    • None
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: