I'm trying to build an automated process for invoice acceptance for my company. So when an e-mail with attached invoice arrives at a specific mailbox, a JIRA issue with attachment is created. However, when someone has to accept dozens of invoices, clicking every time to open pdf attachment preview is a bit mundane. So I'd like to have a pdf preview embedded in JIRA issue view. I know it's possible in comments, using HTML
{html}<embed src="./test.pdf" width="500" height="375" type='application/pdf' />{html},
but it's not automated and using HTML in comments is not the best way as far as I know. Using wiki markup !test.pdf|width=500,height=375! works fine with images, but with pdfs it returns an error Unable to embed resource: test.pdf of type application/pdf. And - again - it's not automated.
I suppose the best way would be to use custom plug-in with js script, but I would have to somehow filter all pdf attachments from the issue. And I never wrote anything in js.
Any help and suggestions appreciated. Thanks in advance!
you can do this with light scripting:
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.