Example #1
0
 def set_location(self, location_id):
     int_location = to_integer(location_id)
     self._set_property(FIELD.LOCATION, int_location)
Example #2
0
 def _read_stories(self, task_id):
     """Read Asana raw stories for a task and return them as a list."""
     return self._asana_api.list_stories(to_integer(task_id))
Example #3
0
 def set_price(self, price):
     int_price = to_integer(price)
     self._set_property(FIELD.PRICE, int_price)
Example #4
0
 def add_comment(self, task_id, message):
     """Create a comment in the service on a task."""
     return self._asana_api.add_story(to_integer(task_id), message)