Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Plugin that performs Issue operations automatically

Georgios Kotsios-Kontokotsios August 30, 2013

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

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
&(*&)#)_*#@@(*)(@*)(*@
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 30, 2013

Yes, it is possible , you need the login name as a string

https://docs.atlassian.com/jira/latest/com/atlassian/jira/user/util/UserManager.html#getUserByName%28java.lang.String%29

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,

Georgios Kotsios-Kontokotsios August 30, 2013

Thank you for your answer. I will try it right away and get back to you with my feedback.

TAGS
AUG Leaders

Atlassian Community Events