nyyManni / ejira

Emacs JIRA integration
GNU General Public License v3.0
256 stars 35 forks source link

Loading attachments #16

Open boogsbunny opened 4 years ago

boogsbunny commented 4 years ago

When a JIRA ticket has an attachment e.g. images, it is either referred to as:

  1. !Foobar.png! in the description
  2. It's not available at all.

How could I load the appropriate attachments in the buffer?

nyyManni commented 4 years ago

JIRA's REST API has methods for listing and fetching the attachments. I did some initial testing with it a couple of years ago with ejira, having an Attachments-heading alongside Comments. The attachments were shown as links and the attachment could be opened in the browser with C-c C-o. I wasn't happy with the way it was working so it never made it into the project, though.

Maybe a better way to do it would be to download those attachemts onto disk and then use a native application to open them (which in many cases would be Emacs). They would then also be available offline.

What kind of attachment workflow would suit you best?

MadEarl commented 4 years ago

If I can chime in here ... With regards to uploading attachments, what I would love to have would be what org-msg does (HTML email creation for mu4e through org): You can just create an org-mode link to a file, and org-msg takes care of attaching it and displaying it inline. I'm not sure if I'd like to download attachments to tickets when syncing. In our case, those can be huge files (logs and suchlike). Deeplinks to them sounds fine to me, and ideally, the pointers in the description could be activated to load the inline picture from the jira server into the buffer.

boogsbunny commented 4 years ago

I would prefer to have a persistent cache folder downloading the attachments and displaying them inline.