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
Hi!
I do like this https://github.com/atlassian-api/atlassian-python-api/blob/master/examples/confluence/confluence_attach_file.py
you can wrap via request package
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.