Skip to content

[Confluence] Unable to pass attachment stored in memory to add_attachment method #1125

Closed
@jcdbautista

Description

@jcdbautista

In the official Python library for JIRA docs, JIRA's add_attachment method expects an issue_key and attachment. It only expects a filename if the attachment is being passed from memory as a StringIO object .
https://jira.readthedocs.io/examples.html#:~:text=.name)-,2.1.11.%20Attachments,-%23

In the Atlassian Python API documentation, the add_attachment method only expects an issue_key and a filename. This prevents the attachment of files stored only in memory.
https://atlassian-python-api.readthedocs.io/jira.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    confluenceAtlassian Confluence (Cloud, Server or Dataceneter)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions