Read description for new Subtasks from File

This commit is contained in:
2024-02-20 19:55:03 +00:00
parent f8f11e99d2
commit 03b9a8b446
2 changed files with 41 additions and 5 deletions
+5 -5
View File
@@ -67,11 +67,11 @@ if __name__ == "__main__":
# pprint(res.json())
# # bulk create subtasks
# subtask_texts = [
# "Prepare",
# "Execute",
# "Verify"
# ]
subtask_texts = []
with open("sub-tasks.txt", "r", encoding="utf-8") as fh:
for line in fh:
subtask_texts.append(line.rstrip('\n'))
# create
# for text in subtask_texts:
# subtask['body'] = text
# ac.create_subtask(subtask)