Compare commits
2 Commits
e3f7309318
...
df7921a376
Author | SHA1 | Date |
---|---|---|
Brian Hicks | df7921a376 | |
Brian Hicks | ad1937c0e4 |
|
@ -26,7 +26,7 @@
|
|||
if (tag.name == "Wandering Toolmaker") {
|
||||
defaultCategory = tag.name;
|
||||
break;
|
||||
} else if (tag.name == "teams" || (tag.parent && tag.parent.name == "teams")) {
|
||||
} else if (tag.name == "teams" || (tag.parent && tag.parent.name == "teams") || tag.name == "work" || (tag.parent && tag.parent.name == "work")) {
|
||||
defaultCategory = "Team";
|
||||
break;
|
||||
} else if (tag.name == "personal" || (tag.parent && tag.parent.name == "personal")) {
|
||||
|
|
|
@ -51,6 +51,8 @@
|
|||
let teamsTag = flattenedTags.byName("teams") || new Tag("teams");
|
||||
let teamTag = teamsTag.tagNamed(linearTask.team.name) || new Tag(linearTask.team.name, teamsTag);
|
||||
|
||||
let linearTag = flattenedTags.byName("from Linear") || new Tag("from Linear");
|
||||
|
||||
let projectName = `${linearTask.team.name} Non-Project Tasks`;
|
||||
if (linearTask.project !== null) {
|
||||
projectName = linearTask.project.name;
|
||||
|
@ -58,12 +60,14 @@
|
|||
|
||||
let project = flattenedProjects.byName(projectName) || new Project(projectName);
|
||||
project.addTag(teamTag);
|
||||
project.addTag(linearTag);
|
||||
project.containsSingletonActions = true;
|
||||
toFocus.push(project);
|
||||
|
||||
let taskName = `${linearTask.identifier}: ${linearTask.title}`;
|
||||
let task = project.taskNamed(taskName) || new Task(taskName, project);
|
||||
task.addTag(teamTag);
|
||||
task.addTag(linearTag);
|
||||
if (task.note.indexOf(linearTask.url) === -1) {
|
||||
if (task.note !== "") {
|
||||
task.appendStringToNote(`\n\n${linearTask.url}`);
|
||||
|
|
Reference in New Issue