Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get Changeset from Workteim #79

Open
cmedcoff opened this issue Sep 28, 2019 · 1 comment
Open

get Changeset from Workteim #79

cmedcoff opened this issue Sep 28, 2019 · 1 comment
Assignees

Comments

@cmedcoff
Copy link

cmedcoff commented Sep 28, 2019

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?

@SAnCherepan
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants