Skip to content

[JIra] Ticket with added attachment are not visible by Crucible #514

@Don-Touch

Description

@Don-Touch

There is an issue with jira.add_attachment() post method.
After adding attachment to some ticket through this method, the ticket disappeares in Atlassian Crusible.
I've found one discrepancy between adding attachment through curl command and the python method.
Curl request:
curl -D- -u user:password -H "X-Atlassian-Token: no-check" -F "file=@file.png" https://{jira_link}/rest/api/2/issue/{issue_key}/attachments.
In response I can see "mimeType":"image/png", where it's missing in response of jira.add_attachment().

The way to reproduce is to open attachment url in browser. Attachment added manually and through curl is opened as a picture in browser. Attachment added by method is being downloaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions