Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add multimedia attachment to JIRA using pthon

Ventsislav
Contributor
June 25, 2020

I am trying to add a multimedia attachment using https://github.com/pycontribs/jira

What I have so far:

from jira import JIRA
import urllib.request
from io import BytesIO
auth_jira
= JIRA(
basic_auth
=(email, token),
options={'server': instance} ) with urllib.request.urlopen(url) as f:
file = BytesIO(f.read())
auth_jira
.add_attachment(
issue=issue,
attachment=file,
filename=attachment['filename'] or 'test.mp4', )

It's working fine with images, but I am trying to add a video from youtube, vimeo, etc.

Note:

a youtube url would look something like https://www.youtube.com/embed/ljg_EgXMjO0?feature=oembed

Any help would be appreciated

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 28, 2021

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events