Skip to content

Commit

Permalink
Create Asana task in proper section (#19)
Browse files Browse the repository at this point in the history
<!--
Thank you for contributing to the project! πŸ’œ
Please see our [OSS process
document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#)
to get an idea of how we operate.
-->

## Which problem is this PR solving?

- Closes #18

## Short description of the changes

Changed API call based on
[this](https://forum.asana.com/t/add-task-to-a-section-upon-creation-via-api-request/51957/4)

## How to verify that this has the expected result

I forked the repository to our private repo with the changes and it's
working fine now.
  • Loading branch information
q71114 authored Feb 13, 2023
1 parent efc2f1a commit 8506944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function run(): Promise<void> {
await client.tasks.create({
workspace: workspaceId,
projects: [projectId],
assignee_section: sectionId,
memberships: [{ project: projectId, section: sectionId }],
name: taskName,
notes: taskDescription,
due_on: dueDate,
Expand Down

0 comments on commit 8506944

Please sign in to comment.