Transcoding JIRA issue video attachments

Kukk February 27, 2024

Hello,

How could i achieve this?

I have not tried it yet, just a thought.

I was thinking of using Jira automation, to detect attachment.

Download it via API, send to to some cloud transcoding service. 

Get it back and add it to issue, deleting the original file.

 

1 answer

0 votes
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2024

Hey @Kukk I love this idea. Unfortunately I don't think it can be done with only Jira Automation.

  • Automation doesn't support adding attachments, as documented here and here 
    • Also, I'm not even sure how they would implement this
      • File picker dialog so you can upload files to Automation (stored where?) so that certain attachments (example: PDF form that needs to be filled out?) can ALWAYS be added to an issue?
      • Add option to "add attachment from URL"? Would it support authentication? 
  • Automation doesn't support SENDING attachments, at least not as binary data. You can get the URL for the attachment as {{content}} for each {{attachment}}, as mentioned here.

However, if you were able to set up your own external service, you have Jira Send Web Request to it including the following information:

  • Issue Key
  • Attachment Link

Your service could then download the attachment (you would need to use an API key) and then transcode it (or send it to a transcoding service), and then make an API call back to Jira to upload the new file.

HUH, if you're familiar with React, it looks like maybe maybe you could use Forge to do this: https://developer.atlassian.com/platform/forge/automation-with-forge/#extending-automation-with-forge

Let us know if you if you end up implementing something like this!

Kukk February 28, 2024

Thanks a lot for really quick and thorough answer.

 

Forge looks promising.

 

I will work on this project in 4-5 months, just getting intel.

It seems that it might work with automation and Jira cloud API

1. API call to get issue data 

3. Parse the response, see if attachment format is correct.

2. Get latest attachment link ( as you said) - this is direct download link

3. Make a web request in automation to external cloud transcoding service with that link.

4. Get response, link to file maybe?

5. Use jira Cloud API to add the attachment ,need to look into this, how  exactly works, what's the body, and can just a link to video work here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events