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

How does the plugin detect which task it has to be attached to? #8

Open
christian-hess-94 opened this issue May 2, 2022 · 2 comments

Comments

@christian-hess-94
Copy link

I'm currently trying to implement the plugin into our Asana board

The main question really is how the github action can correctly attach itself to a certain task without using any kind of ID, or something?

How does it know to attach to a certain task instead of another one? Does it use the title for that or something like that? Or do we have to manually attach it using the "github PR" field inside the task?

@katelillemoen
Copy link

Not part of the Asana team so take this with a grain of salt
Based on my experience implementing this at my company, the PR description is searched for an asana link and the task ID is parsed from the end of the link.

For example, if the link https://app.asana.com/0/<project_id>/<task_id>/f is included in the PR description, the action will attempt to link the PR to a task with an id matching task_id. Important to note, the integration doesn't currently have the ability to recognize a link to a project (ex. https://app.asana.com/0/<project_id>/list) vs a link to a task (ex. https://app.asana.com/0/<project_id>/<task_id>/f) and in the event a link to a project is included, the action will fail with a "Task not recognized: <project_id>" error.

@xiongchiamiov
Copy link

I think it will attempt to attach to every Asana task url it finds in the description. I haven't thoroughly tested this and I don't really understand typescript, but that matches what I've seen.

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

No branches or pull requests

3 participants