You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
validateOnly=true is used to test work item creation without actually creating one.
Therefore, response contains fields of not-created-workitem.
Logically, it does not contain System.ID.
That breaks WorkItem.__init__() method that tries to self.id = self.data["id"] while data has no "id".
The text was updated successfully, but these errors were encountered:
@allburov , @SAnCherepan : what would be the expected behaviour when calling, e.g. create_workitem('Bug', validateOnly=true)?
A solution could be that create_workitem() would return True/False (depending on http response) instead of returning a Workitem instance. What do you think?
validateOnly=true
is used to test work item creation without actually creating one.Therefore, response contains fields of not-created-workitem.
Logically, it does not contain
System.ID
.That breaks
WorkItem.__init__()
method that tries toself.id = self.data["id"]
while data has no"id"
.The text was updated successfully, but these errors were encountered: