Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
adds asana links on task creation to issue
Browse files Browse the repository at this point in the history
closes #54
  • Loading branch information
Josh Whelchel committed Aug 8, 2015
1 parent 2fa3690 commit 521a83a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion asana_hub/actions/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ def run(self):
issue_number=issue.number,
issue_state=issue.state,
issue_html_url=issue.html_url,
issue_body=issue.body,
asana_workspace_id=asana_workspace_id,
name=issue.title,
notes=issue_body,
# TODO: Correct assignee.
assignee='me',
projects=[project_id],
Expand Down
10 changes: 8 additions & 2 deletions asana_hub/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ def run(self):
def create_missing_task(self,
asana_workspace_id,
name,
notes,
assignee,
projects,
completed,
issue_number,
issue_html_url,
issue_state,
issue_body,
tasks,
labels,
label_tag_map):
Expand All @@ -97,7 +97,7 @@ def create_missing_task(self,
asana_workspace_id,
{
'name': name,
'notes': notes,
'notes': issue_body,
'assignee': assignee,
'projects': projects,
'completed': completed,
Expand All @@ -115,6 +115,12 @@ def create_missing_task(self,
)
)

put("apply_tasks_to_issue",
tasks=[task_id],
issue_number=issue_number,
issue_body=issue_body,
)

# Save task to drive
put_setting("save_issue_data_task",
issue=issue_number,
Expand Down

0 comments on commit 521a83a

Please sign in to comment.