Hello,
My creating a flow which grabs values off of a SharePoint (coming from PowerApps) and creating an work item in Azure DevOps. When I use "Create a work item (Azure DevOps)". Even though I leave the "Assigned To" (under Show Advanced Options) it assigns the task to me.
Gone through this thread: Solved: Re: Azure Devops Connector - Create Work Item for ... - Power Platform Community (microsoft.com)
I have to added "Send a HTTP request to Azure DevOps" after "Create a work item (Azure DevOps)" with the following:
Relative URI: {Project name}/_apis/wit/workitems/$issue?api-version=7.1-preview.3
Headers: Content-Type: application/json-patch+json
Body:
{
"op":"add",
"path":"/fields/System.AssignedTo",
"from":null,
"value":""
}
The error I get is:
"status": 400,
"message": "You must pass a valid patch document in the body of the request.
Details: {\"$id\":\"1\",\"innerException\":null,\"message\":\"You must pass a valid patch document in the body of the request.\",\"typeName\":\"Microsoft.VisualStudio.Services.Common.VssPropertyValidationException, Microsoft.VisualStudio.Services.Common\",\"typeKey\":\"VssPropertyValidationException\",\"errorCode\":0,\"eventId\":3000}",
"error": {
"message": "You must pass a valid patch document in the body of the request.\
Details: {\"$id\":\"1\",\"innerException\":null,\"message\":\"You must pass a valid patch document in the body of the request.\",\"typeName\":\"Microsoft.VisualStudio.Services.Common.VssPropertyValidationException, Microsoft.VisualStudio.Services.Common\",\"typeKey\":\"VssPropertyValidationException\",\"errorCode\":0,\"eventId\":3000}"
},
"source": "vsts-ce.azconn-ce-001.p.azurewebsites.net"
}
I want to create a work item with the following:
Type: Issue
Description field should have the following data from SharePoint: (Priority, Created By, Email)
Link URL: URL column from SharePoint
Assigned To: null
State: New