I am trying to create an Automation Scheduled rule which will run Groovy Script without running JQL.
In Script Console I can checl that all working ok and all log.warn() messages are printed out in log to trace various stages.
Once I copied same script to Automation Stage it does not run anything if I don't specify a JQL search which I don't need as I will do all in script.
Do I miss something?
Shall i assume that thare are some limitations for ScriptRunner task in Automation?
Choice "simply run the conditions and actions without providing issues" on https://docs.automationforjira.com/getting-started/triggers.html#scheduled
I believe there's a bug on the ScriptRunner side, where if there is no issues returned then we don't run your script: https://productsupport.adaptavist.com/browse/SRJIRA-3302
Are you just using the rule for scheduling purposes? If so I'd suggest using a _Service_, which will let you run a script on a schedule: https://scriptrunner.adaptavist.com/latest/jira/services.html
Many people also use _escalation services_ for something similar: https://scriptrunner.adaptavist.com/latest/jira/escalation-service.html
Looks like again, I can't set up to run it with no JQL.
So as same as in Automation I need to invent some kind of Issue and JQL which will always have 1 result output to run this only 1 time.
Managing services end-to-end, optimizing efforts to deliver the best services to customers. This is what team leaders and managers want to achieve. When using a tool like Jira, it...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events