JIRA-plugin -- how to make schedule work in plugin?

JIRA-plugin – how to make schedule work in plugin??

https://developer.atlassian.com/docs/atlassian-platform-common-components/shared-access-layer/scheduling-events-via-sal-tutorial

Is the question - how to schedule a task to be run through the add-on then you’ll want to use Bitbucket (assuming that you’re targeting JIRA 7.x+ ).