Skip to content

How can I run a simple query and get the result? #431

@MartinBarkerPhilips

Description

@MartinBarkerPhilips

Hello, I'm using the azure-devops-python-api and I need to be able to query & find a specific work item based on a custom field value.

The closest thing I can find is the function create_query, but Im hoping to be able to run a query such as

queryRsp = wit_5_1_client.run_query(
    posted_query='',
    project=project.id, 
    query='Custom.RTCID=282739'
)

I just need to find my azure devops work item where the custom field RTCID has a certain specific unique value.

Do i need to create a query with the api, run it, get results, then delete the query? Or is there any way I can run this simple query and get the results using the azure devops api?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions