Skip to content

Conversation

@viamin
Copy link
Owner

@viamin viamin commented Dec 30, 2025

The memberships_for_task method was incorrectly looking for a section
whose name matched the entire "Project:Section" string (e.g., "Pets:Bucky"),
but Asana section names are just the section part (e.g., "Bucky").

This fix:

  • Parses the "Project:Section" format to extract project and section names
  • Looks up the project by project name first
  • Then finds the section by section name within that specific project
  • Handles edge cases: blank project, missing section, colons in section names

Fixes #137

The memberships_for_task method was incorrectly looking for a section
whose name matched the entire "Project:Section" string (e.g., "Pets:Bucky"),
but Asana section names are just the section part (e.g., "Bucky").

This fix:
- Parses the "Project:Section" format to extract project and section names
- Looks up the project by project name first
- Then finds the section by section name within that specific project
- Handles edge cases: blank project, missing section, colons in section names

Fixes #137
Resolved conflict in memberships_for_task by keeping the fix that
correctly parses 'Project:Section' format instead of the old buggy
code that looked for a section name matching the entire string.
@viamin viamin merged commit 64e2b94 into main Dec 31, 2025
4 checks passed
@viamin viamin deleted the claude/fix-issue-137-TE906 branch December 31, 2025 21:27
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

Successfully merging this pull request may close these issues.

Asana first list in project is treated differently

3 participants