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.Calendaris one of the worst APIs in existence. The joda-time library or the JDK 8
java.timepackage can help you do this correctly.
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.
Hi there! Shannon from Statuspage here. 👋 With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG