jpiquot / ChildTasksTemplate

Apache License 2.0
8 stars 4 forks source link

Can't set AssignedTo of the Parent. Bug? [High Priority] #16

Open o-o00o-o opened 2 years ago

o-o00o-o commented 2 years ago

Trying to set the same Assigned To as the parent

this works (if email@email.com exists)

{
  "name": "System.AssignedTo",
  "value": "email@email.com"
}

but this doesn't

{
  "name": "System.AssignedTo",
  "value": "{System.AssignedTo}"
}

I suppose it is because AssignedTo will return a contact string "FirstName LastName email@email.com"

Any chance of a fix for this?

jonalexharbor commented 2 years ago

This is the same issue I was having. Thank you for posting this, I should have created the issue myself instead of commenting on Issue #1.

But yes, no error message for me either. When I try to use the System.AssignedTo value the tasks just fail to create.

GinChila commented 2 years ago

For me, this worked:

{
"name": "System.AssignedTo",
"value": "{System.AssignedTo.uniqueName}"
}

I took the information from the example on this page: https://docs.microsoft.com/en-us/rest/api/azure/devops/core/teams/get-team-members-with-extended-properties?view=azure-devops-server-rest-5.0