Open harsheel87 opened 5 years ago
Hi @harsheel87, I stumbled upon the same issue. In my case I forgot the explicitly set the project id. And as get_workitem
is more forgiving and runs without the project ID I did not notice this immediately. Here the "test" code that made me notice:
client = TFSAPI(url, project = project, auth_type=HttpNegotiateAuth)
wi_fails = client.create_workitem('Bug', fields = fields)
project_id = client.projects[0].id
client_wtf = TFSAPI(url, project = f"{project}/{project_id}", auth_type=HttpNegotiateAuth)
wi_ok = client_wtf.create_workitem('Bug', fields = fields)
I have no installed Azure DevOps Server and don't can test this.
@harsheel87 Did the above advice about project_id
help you?
Thanks @strahl for the inputs. @allburov , sorry for the late reply as I had to leave on family medical leave but the project was shelved before we could try the suggestion.
I am using Azure DevOps Server 17.143.28912.1.
I am able to invoke
get_workitem
calls butcreate_workitem
calls fail. Can someone point me what I may be doing wrong?ERROR: