Skip to content

Attachments are not working #24

@cgcullen

Description

@cgcullen

Attachments are not working for me. I may be doing something wrong, but I'm getting validation errors as if I'm not sending any data.

I'm using the following:

	    $response = $this->client->post(
	    	'projects/'.$project.'/tasks',
		    [
			    'name' => $task,
			    'body' => '<a href="'. env('APP_URL').'/ticket/'.$id .'" target="_blank">'.env('APP_URL').'/ticket/'.$id .'</a><br><br>'.$body,
			    'assignee_id' => $person
		    ],
		    $attachments
	    );

It works fine if I leave off the attachments, but when I get the validation errors:
Task summary is required
Value of task_list_id field is required
Please select a project

Am I doing something wrong?

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