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
Super User II
Super User II

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (3,209)