Compare commits

...

2 Commits

  1. 2
      Focus.omnijs
  2. 4
      Linear.omnifocusjs/Resources/pull.js

2
Focus.omnijs

@ -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")) {

4
Linear.omnifocusjs/Resources/pull.js

@ -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}`);

Loading…
Cancel
Save