Hi all,
I want to create a plugin which will execute in the background on an interval. The plugin should perform some issue operations if a condition is met. Is this possible to do without a user being logged in?
Maybe it could also be possible to use a certain user for the plugin. The problem is I don't know how to get the User instance and use it.
Thanks in advance
Community moderators have prevented the ability to post new answers.
Yes, it is possible , you need the login name as a string
have a look a the developper tutorial about how to get Component dependancies resolved with ioc or componentManager , there valuable tutorail for your issue at hand ( how to schedule a plugin task )
https://docs.atlassian.com/jira/latest/com/atlassian/jira/ComponentManager.html
( https://answers.atlassian.com/questions/34732/why-componentmanager-is-not-defined )
best regards,
Thank you for your answer. I will try it right away and get back to you with my feedback.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.