Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, How Can I Remove A Tag From A Task Via Code In A Non-Barbaric Way?

Hi, how can I remove a tag from a task via code in a non-barbaric way?

  
  
Posted 4 years ago
Votes Newest

Answers 6


In theory task.tags.remove(tag) might also work, but I'm not sure of it will automatically be updated on the backend

  
  
Posted 4 years ago

Ooops 😞
task.get_tags()
task.set_tags()

  
  
Posted 4 years ago

🙂

  
  
Posted 4 years ago

SmarmySeaurchin8
updated_tags = task.tags
updated_tags.remove(tag)
task.tags = updated_tags

  
  
Posted 4 years ago

Hmm
AttributeError: 'Task' object has no attribute 'tags'

  
  
Posted 4 years ago

Will try, thanks

  
  
Posted 4 years ago
1K Views
6 Answers
4 years ago
one year ago
Tags
Similar posts