tfs icon indicating copy to clipboard operation
tfs copied to clipboard

get Changeset from Workteim

Open cmedcoff opened this issue 6 years ago • 1 comments

I have the following code (fragment):

client = TFSAPI(server_url=bh_tfs_base_url, project=collection, user=user, password=password, auth_type=HttpNtlmAuth)
px = client.run_query("Shared Queries/PX Queries/PX - Priority List")
for work_item in px.result.workitems:
    change_sets_relation = work_item.find_in_relation("ArtifactLink")
    for changeset_relation in change_sets_relation:

How to I create a Changetset object from the relation pointing to the changeset?

cmedcoff avatar Sep 28 '19 21:09 cmedcoff

@cmedcoff, changeset_obj = Changeset(client, changeset_relation) should work. Try it out and let me know if it works out for you.

SAnCherepan avatar Sep 29 '19 04:09 SAnCherepan