From 465b83b626b984f58a9b5070014c585e4f12f454 Mon Sep 17 00:00:00 2001 From: Aleksey Burov Date: Wed, 11 Oct 2017 15:45:02 +0700 Subject: [PATCH] set field as is --- tfs/resources.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tfs/resources.py b/tfs/resources.py index daef9bb..e4f681e 100644 --- a/tfs/resources.py +++ b/tfs/resources.py @@ -52,8 +52,7 @@ def __init__(self, data=None, tfs=None): self.id = self._data['id'] def __setitem__(self, key, value): - result_key = key if key in self._fields else self._system_prefix + key - field_path = "/fields/{}".format(result_key) + field_path = "/fields/{}".format(key) update_data = [dict(op="add", path=field_path, value=value)] raw = self.tfs.update_workitem(self.id, update_data) self.__init__(raw, self.tfs)