Need to load my addon while user login their account and every 15 min

I have a private add-on with my account. Now i have to load my add-on while user login to account in background and have to run the add-on every 15 min in background like filters.

I hope this is possible and kindly share some ideas or procedures or base code to write a code for that.

1 answer

Hi Arutkavi,

 

When you're saying "a private add-on", it's mean you developped it? This should help you : https://community.atlassian.com/t5/Answers-Developer-Questions/Catching-user-login-event/qaq-p/497628

As describe in the tutorial linked by Dmitrii, you will include spring-context dependency, so you can use the Scheduled annotation with cron expression to run your code every 15 minutes.

https://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/scheduling.html#scheduling-annotation-support

http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html

The cron expression should looks like this : "0 0/15 * * * ?"

 

Hope this help.

 

Kind regards,

Christophe

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

671 views 3 11
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you