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

lookupissues call that has sprint related functions not working on event based trigger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 10.2.1, 10.4.0, 10.3.4
    • Actions
    • Severity 3 - Minor

      Issue Summary

      lookupissues call to fetch results for the JQL that has scriptrunner functions in it like below doesnt fetch any records when triggerd by an event or scheduled.

      The same rule runs fine with triggered manually.

      issueFunction in addedAfterSprintStart("DEVPROD board", "{{sprint.name}}")
      
      issueFunction in removedAfterSprintStart("DEVPROD board", "{{sprint.name}}")	
      

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a new rule with lookupissues action.
      2. Add the above JQL in the JQL section.
      3. Run it manually, and the results are fetched.
      4. Change the trigger to event based or scheduled, then the JQL does not fetch any results.

      Expected Results

      The call should give correct results in all kinds of triggers.

      Actual Results

      The below message is displayed in the audit log.

      "A search during custom value definition found no issues."
      

      Workaround

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

              Unassigned Unassigned
              1463fcb5e3fd Sireesha
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: