Why custom mail handler is not visible on the list of handlers?

Janusz Grabis August 31, 2015

Hello,

I have created a plugin following steps on this page:https://developer.atlassian.com/jiradev/jira-platform/email/tutorial-custom-message-mail-handler-for-jira (two times already).
atlas-run command created an instance of JIRA, I can see my plugin on Add-ons | Manage add-ons page but when I go to System | Incoming mail and try to "Add new incoming mail handler", my handler is not there. Please help me resolve that issue.

Thanks,

Janusz

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 31, 2015

The screen only lists listeners that JIRA knows about from a file in the core code.  It does not read the class names from add-ons.  But it will work, just put in the class name of your handler in the text box.

Janusz Grabis September 1, 2015

I do not understand. Handlers is a combo box, there is no way to type anything there. What text box do you have in mind?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 1, 2015

Ahh, sorry, I was looking at an older version of JIRA. In order to get your email handler listed, you need to have it flagged as a handler in the code. Unfortunately, the page you've linked to is correct, and it works fine for me (Jira 6.4), so the question becomes what you've done differently from the tutorial.

Janusz Grabis September 1, 2015

Thanks, you are right - it works if I do everything exactly as tutorial says. However I wanted to change package name, class names etc, to reflect my project. Will have to figure out why it does not work then.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 1, 2015

Sadly, I'd revert to the slow method - change one thing at a time until it breaks, then you know which one is breaking it!

Janusz Grabis September 2, 2015

Yes, I took that approach and eventually I'm moving forward with my plugin (I have proper namespaces and proper naming). Thank you very much for your help.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 2, 2015

Sorry I was unable to point you at a specific cause. When I've done it, it's always been the class name I've messed up, but I only found it by trawling through one change at a time.

0 votes
Janusz Grabis September 2, 2015

Just a note for everyone who is looking for a solution to a problem described in the subject. Please read carefully my notes and notes of Nic above. They explain what must be done to create plugin with your own naming/namespaces, etc.

TAGS
AUG Leaders

Atlassian Community Events