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
- Create a new rule with lookupissues action.
- Add the above JQL in the JQL section.
- Run it manually, and the results are fetched.
- 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
- links to