Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments are not working #24

Open
cgcullen opened this issue Jan 18, 2019 · 0 comments
Open

Attachments are not working #24

cgcullen opened this issue Jan 18, 2019 · 0 comments

Comments

@cgcullen
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant