Hi,
Is there any way to override jira service (eg. using AOP)?
I'd like to filter MailQueueItems inside MailQueue before MailQueueService starts to process it. It would be ideally to override MailQueueService.run() method - but probably it is not possible.
I've spent lots of time without any success. Please let me know how can I do it.
I can prepare scheduled job and check queue, but this solution is not good, because internal jira jobs runs as default once a minute, and there is a risk, that new elements appear on queue after my job finishes.
How it coul'd be done in jira plugin development?
Bart
You cannot override logic of MailQueueService.
What is your task? What exactly you would like to change in MailQueueService.run() method?
Hi,
my task is the following:
Could You help me in point 3?
Bart
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it is not possible at the moment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Isn't it possible to add some listener and check what is added to mail queue and modify it before email sending starts?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it's too late in the process.
Events are fired when something happens. There's a built-in listener that picks them up and sends out notifications.
You have no way of knowing if your listener will react to an event before, during, or after another listener, and even if you could be sure it runs before the notification listener, events are not modifiable, so you wouldn't be able to do anything with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will need to remove the notifications completely, so that Jira does not do anything with the events, and write your own notification listener.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not without hacking the core of Jira apart.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.