We have created successfully a incoming mail handler which creates issues by sending an e-mail to the configured address.
My problem is, that the "from" address is not added to the created issue. Becasue we don't want, that users are automatically created this information is very important. Without it, the feature is currently useless for us, because we can't reply to the reporter.
You could save the address in a customfield.
Ok, sounds good. I know where to add custom fields. But I don'T find a way to get the from adress vom the mailhandler to put it into the custom field.
Can you explain how this should work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could try it with this:
message.getFrom()
Then you get the adress(es).
I recommend injecting the MessageUserProcessor in your constructor to get an ApplicationUser directly like this if your goal is to first search for a valid JIRA user or you want to further interact with the system if you found a user:
messageUserProcessor.getAuthorFromSender(message)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think my question was misleading. We have not written our own mailhandler, we used the build in, from jira.
So, we don't have access to the message object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok then this is another topic, I see.
So is there anything in your log-files that may indicate what is going wrong here?
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.
I have raised a support ticket to atlassian. They told me, that it is not possible. Only chance would be to let the mail handler create users -> which costs 7€ per received e-mail and month. So it is not an option. Or to buy a service desk license.
So, an easy technical task is not wanted for econemy reasons ;)
Thanks for the reply.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry for you that this is not possible.
Your welcome!
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.