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.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs