I have a pipeline in which I need to query work items for which I am using rest api but I am not sure how to use this with Azure pipeline task. Mine is a linux agent hence, is it possible to run it in shell instead of powershell?
How can we run WIQL query in Azure devops pipeline task? Any examples
1k Views Asked by Stack_IQ At
1
There are 1 best solutions below
Related Questions in AZURE-DEVOPS
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Error: VS800075 when downloading artifact from another project
- Azure Scale Sets and Parallel Jobs
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- Referencing yml file from submodule in main pipeline
- Where to find a User Story draft?
- Self Hosted Agent service startup getting failed on VM restart
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- Dacpac deployment to Azure via SSMS failed: Cannot alter the role db_owner
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- Share variables across stages in azure pipelines with templates
- Can I move an Azure Data Factory Pipeline to Azure DevOps?
- How to migrate a single workitem in Devops
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
Related Questions in WIQL
- Filter workitems created within a time range using Wiql
- Azure DevOps Server: WIQL work item from backlog
- Error when trying to retrieve AzureDevOps WorkItemLinks using WIQL in C#
- How can I use a custom value in WIQL query? (Azure Devops)
- ADO - WIQL - How to query ADO workitems for reporting developer productivity and quality
- Retrieving changesets form a work item programmatically
- Bad JSON escape sequence in powershell trying to edit a wiql
- How can we run WIQL query in Azure devops pipeline task? Any examples
- WIQL - query External Link type
- How to display date difference in WIQL query?
- Can you query Azure DevOps ChangedDate for a date range
- How to select ALL columns with Work Item Query Language (WIQL)?
- Azure Devops - Azure boards / teams with no work items
- Can we export Azure DevOps work item fileds into Excel
- How to query for a nonexistent field in WIQL
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can run WIQL query in shell script or something like that in pipeline task.
Create a Json without newlines like:
And send it with the following:
organizationNameis the organization name.projectis the project name.presenteris the user.name (from az account show)PATis the personal access token.For running query in PowerShell script with Azure pipeline, you can refer to this ticket Running query in Pipeline in Azure-DevOps.
For running Azure DevOps Service REST API with Linux Shell script, you can refer to this ticket Create Pull Request by Azure DevOps Service REST API with Linux Shell script.
Hope that would help you.