Skip to content

[Service Desk] Creating/Adding attachments #1056

@tommyM86

Description

@tommyM86

I found a small issue when trying to add an attachment to an active request:
When calling the method create_attachment from the ServiceDesk class, the following error is raised:
File "/home/thomas/git/private/atlassian-python-api/atlassian/service_desk.py", line 497, in attach_temporary_file
.json()
AttributeError: 'dict' object has no attribute 'json'.

The error is based on the fact that when using the ServiceDesk class and subsequently the method self.post(...) in normal mode, the response is already converted to JSON inside that method (post). Using the ServiceDesk class in advanced mode does not raise any issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions