I get an error in my workflow when Updating a Azure DevOps work item. I'm trying to add a tag value to the work item and I get the following error message:
Unable to process template language expressions in action 'Update_a_work_item' inputs at line '1' and column '2715': 'Unable to evaluate template language expression '@triggerBody()?['fields']?['System_Tags']' as JSON property name: the expression value of type 'Null' could not be used as property name.'.
I'm using the Other Fields and entering Dynamic Content Tags in the key field and text in the value field.
The peek Code shows the following for the tag info:
"userEnteredFields": {
"@triggerBody()?['fields']?['System_Tags']":
If I use the DevOps Create Work Item, I can add a tag just fine. The peek code shows:
"dynamicFields": {
"System.State": "@body('Update_a_work_item')?
As you can see, the add work item is using a different name (dynamicFields) for the tags field and the update is using (userEnteredFields).
Is there a fix for this?