Is there a Cron Expression for a filter subscription that will run once 12 hours after the issue is created? Any help is appreciated.
Take a look at JIRA filter subscriptions (https://confluence.atlassian.com/jiracoreserver071/working-with-search-results-802172637.html)
Well, yes and no. You can certainly create a cron expression that will mean 12 hours from now and never again, but doing so reliably is not simple and there are a lot of edge cases.
Let's say that it is currently 2:00 P.M. on Wed 15 Jun 2016 in my time zone. This cron expression would do it:
0 0 2 16 6 ? 2016
Because 2 A.M. on the morning of Thu 16 Jun 2016 is the only time that cron expression will ever match. But things aren't as simple as that makes it sound, because:
java.util.Calendar
java.time
This kind of stuff is possible to do from plugin land. You could create your own JobRunner that schedules using the proper atlassian-scheduler run-once mode with an interval delay, instead, and react to that by running the appropriate filter subscription directly. The job would clean itself up, so all you would need to do is delete the filter subscription if it is no longer needed.
JobRunner
It looks like you're new here. Sign in or register to get started.