Skip to content

Commit

Permalink
mark tasks and projects as active if not done and reimported
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Nov 10, 2022
1 parent c863f55 commit 607d3bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Linear.omnifocusjs/Resources/pull.js
Expand Up @@ -57,6 +57,7 @@
project.addTag(teamTag);
project.addTag(linearTag);
project.containsSingletonActions = true;
project.status = Project.Status.Active;
toFocus.push(project);
if (linearTask.project && project.note.indexOf(linearTask.project.url) === -1) {
if (project.note !== "") {
Expand All @@ -70,6 +71,7 @@
let task = project.taskNamed(taskName) || new Task(taskName, project);
task.addTag(teamTag);
task.addTag(linearTag);
task.markIncomplete();
if (task.note.indexOf(linearTask.url) === -1) {
if (task.note !== "") {
task.appendStringToNote(`\n\n${linearTask.url}`);
Expand Down

0 comments on commit 607d3bb

Please sign in to comment.