def _complete_original_tasks(<EOL>self,<EOL>setName):
self.log.info('<STR_LIT>')<EOL>if self.editorialRootPath:<EOL><INDENT>taskpaperDocPath = self.syncFolder + "<STR_LIT>" +self.workspaceName + "<STR_LIT:->" + setName + "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>taskpaperDocPath = self.syncFolder + "<STR_LIT:/>" +self.workspaceName + "<STR_LIT:->" + setName + "<STR_LIT>"<EOL><DEDENT>exists = os.path.exists(taskpaperDocPath)<EOL>if not exists:<EOL><INDENT>return<EOL><DEDENT>doc = document(taskpaperDocPath)<EOL>doneTasks = doc.tagged_tasks("<STR_LIT>")<EOL>for t in doneTasks:<EOL><INDENT>theseNotes = t.notes<EOL>parent = t.parent<EOL>while not len(theseNotes) and parent and parent.parent:<EOL><INDENT>theseNotes = parent.notes<EOL>parent = parent.parent<EOL><DEDENT>if self.editorialRootPath:<EOL><INDENT>theseNotes[<NUM_LIT:0>].title = theseNotes[<NUM_LIT:0>].title.replace(<EOL>"<STR_LIT>", self.editorialRootPath).replace("<STR_LIT>", "<STR_LIT>")<EOL>theseNotes[<NUM_LIT:0>].title = urllib.parse.unquote(<EOL>theseNotes[<NUM_LIT:0>].title).replace("<STR_LIT>", "<STR_LIT:@>")<EOL><DEDENT>originalFile = theseNotes[<NUM_LIT:0>].title.split("<STR_LIT>")[<NUM_LIT:0>].strip()<EOL>if len(theseNotes[<NUM_LIT:0>].title.split("<STR_LIT>")) > <NUM_LIT:1>:<EOL><INDENT>projectName = theseNotes[<NUM_LIT:0>].title.split("<STR_LIT>")[<NUM_LIT:1>].strip()<EOL><DEDENT>else:<EOL><INDENT>projectName = False<EOL><DEDENT>odoc = document(originalFile)<EOL>odoc.tidy()<EOL>odoc.save()<EOL>odoc = document(originalFile)<EOL>if projectName:<EOL><INDENT>thisObject = odoc.get_project(projectName)<EOL><DEDENT>else:<EOL><INDENT>thisObject = odoc<EOL><DEDENT>oTask = thisObject.get_task(t.title)<EOL>if oTask:<EOL><INDENT>oTask.done("<STR_LIT:all>")<EOL>odoc.save()<EOL><DEDENT><DEDENT>self.log.info('<STR_LIT>')<EOL>return None<EOL>
*mark original tasks as completed if they are marked as complete in the index taskpaper document*

        **Key Arguments:**
            - ``setName`` -- the name of the sync tag set