Manually "unpacking" E-Mail

Hi,

We are in the process of moving to JSD and I am trying to deal with customers who still send e-mails to the old distro. (Note: I do NOT want to simply have JSD monitor that distro as it is used for other stuff that should not result in a ticket!)

Ok, what I want to be able to do is for my users to forward an e-mail to JIRA and have it create the ticket. So far so good. BUT, I also want to auto-assign the ticket to that user, replace the "Reporter" with the original sender of the e-mail, remove any "forwarding" stuff (Subject, Description) and finally, check if the e-mail has already been forwarded. A tall order!

So far, I have figured out that in order to achieve this, I need to forward the mail as an attachment. I have JSD then calling a web service I have written that handles the auto-assigning and the Subject replacement. I then plan to store the Message ID in a property and use that to detect duplicates and auto-disposition them as such.

Where I am stuck is in converting the HTML e-mail into the correct format for the Description. I think it uses some form of Wiki format? I can see JSD does it internally when it receives an e-mail, but how can I trigger that process? Can I call the routine externally? Does anyone know of a library that could do it?

Thanks in advance for any help!

2 answers

Check out this add-on.

Thanks for the suggestion! I had a quick look and it seems to be overkill for what I need. (I also couldn't find a price, but looking at the reviews, I suspect it isn't cheap!)

I have managed to cobble something together with a series of REGEX substitutions, but would prefer something more robust and tested, for example, I haven't figured out how to translate lists yet...)

Ideally, if the routine JIRA uses internally could be exposed in the API.....

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,813 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot