When one of our JIRA projects receives an email, it creates a ticket with the contents of the email.
The emails are automated from our frontend site and contain a lot of useful data. The actual emails are fairly readable. Unfortunately, the way JIRA formats the text in the ticket makes the information very difficult to read.
We have created a javascript function that takes the inputted text, parses it, and applies JIRA markup to present the data in a table (and some other stuff).
Presently, after the ticket is created, when we go to work it, we copy the text, run it through our function, and edit the description to replace the raw text with our formatted version. This all works fine but is not very efficient.
Ideally, we would like to be able to somehow add our javascript function to the email handler so it automatically parses the text and applies the formatting upon creation of the ticket.
We are currently using JIRA 5.2. Is there any way we could achieve this?