I am seeing conflicting information about creating an Azure DevOps work item and setting the System.createdBy field to someone besides the Power Automate flow connection. I am using the Send HTTP request to Azure DevOps tool and have tried a couple different JSON configurations in the body of the request.
I have read articles that say if have allowed the PA flow owner the “Bypass rules on work item updates” permission in the DevOps project that you should be able to set the createdBy value. But in the flow history I never see this value getting overwritten. Here’s an example JSON body that I tried:
{
"text": "@{variables('crxReplyBody')}",
"fields": {
"System.createdBy": {
"id": "@{triggerBody()?['from']}"
}
}
}
In this case crxReplyBody is a variable that holds the body of an email that my PA flow is adding as a comment to an existing work item. @{triggerBody()?[‘from’] is the email address of the sender that I want to set as the createdBy value. If I remove the “fields” section of this it works fine:
{
'text': '@{variables('crxReplyBody')}'
}
By the way this is the send HTTP request dialog:
I have the same issue creating a new work item in power automate. I cannot override the System.createdBy value. Even though I have found articles here that say I should be able to do it.
text
Looking for any clues.
I have tried everything above which includes setting the project permissions and trying the Create DevOps work item power automate action. It seems like such a straight forward need that many people would have.