cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LukeMifsud
New Member

Setting the Created By on DevOps Work Items using Flow

Hi,

 

We have created a flow that generates a number of Work Items that are linked as children when a certain Work Item is created in Azure DevOps.

 

The issue we currently have is that these generated Work Items have the creator of the flow set as the person that created these Work Items.

 

Is it possible to dictate the created by field to the person that creates the Work Item that triggers the flow or is this field not editable in DevOps?

1 REPLY 1
Expiscornovus
Dual Super User
Dual Super User

Hi @LukeMifsud,


You can use the bypassRules property in the creation of a work item via the Azure DevOps Rest API. This allows you to set the createdby if you have sufficient permissions in the DevOps Project.

https://developercommunity.visualstudio.com/t/change-systemcreatedby/283179

https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/create?view=azure-devops-res...

 

Below is an example of that.

 

[
  {
    "op": "add",
    "path": "/fields/System.Title",
    "from": null,
    "value": "Sample task"
  },
  {
    "op": "add",
    "path": "/fields/System.CreatedBy",
    "value": "Jane Doe"
  },
 {
    "op": "add",
    "path": "/fields/System.ChangedBy",
    "value": "Jane Doe"
  }
]

createdby_changedby_bypassrules_devops.png

 

This example will create a task.

 

createdbytask.png

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,545)