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

Referencing Azure DevOps work item StartDate and FinishDate in a flow

Hi Community,

 

I'm building a flow to update related to a DevOps work item Microsoft ToDo task: when a task work item is updated, find its related ToDo task and update its details with the work item's details. It's working fine but I want to be able to set a Finish Date for the DevOps task and sync it with the ToDo task due date. For that I need to reference the DevOps task's FinishDate, which the flow gets from ADO but I can't pick it from the Dynamic Content section of the flow. Here is an example of what I get from ADO (some fields have been redacted):

 

{
  "System_Id"16303,
...
  "System_Rev"6,
  "System_AuthorizedDate""2022-01-18T00:09:46.94Z",
  "System_RevisedDate""9999-01-01T00:00:00Z",
  "System_IterationId"584,
  "System_WorkItemType""Task",
  "System_State""Active",
  "System_Reason""Investigate",
  "System_AssignedTo"">",
  "System_CreatedDate""2022-01-14T12:01:07.97Z",
  "System_CreatedBy"">",
  "System_ChangedDate""2022-01-18T00:09:46.94Z",
  "System_ChangedBy"">",
  "System_AuthorizedAs"">",
  "System_PersonId"207316025,
  "System_Watermark"102007,
  "System_CommentCount"0,
  "System_Title""NF-Nex: ...",
  "Microsoft_VSTS_Common_StateChangeDate""2022-01-14T12:01:10.46Z",
  "Microsoft_VSTS_Common_ActivatedDate""2022-01-14T12:01:10.46Z",
  "Microsoft_VSTS_Common_ActivatedBy"">",
  "Microsoft_VSTS_Common_Priority"2,
  "Microsoft_VSTS_Scheduling_StartDate""2022-01-13T00:00:00Z",
  "Microsoft_VSTS_Scheduling_FinishDate": "2022-01-21T00:00:00Z",
  "Microsoft_VSTS_Common_Triage""Pending",
  "Microsoft_VSTS_CMMI_Blocked""No",
  "Microsoft_VSTS_CMMI_TaskType""Planned",
  "Microsoft_VSTS_CMMI_RequiresReview""No",
  "Microsoft_VSTS_CMMI_RequiresTest""No",
  "System_Description"
  "System_Tags""Team; VTS",
  "System_Parent"14229,
  "Vsts_AssignedToEmail""",
  "Vsts_WorkItemUrl""https://.visualstudio.com/_apis/wit/workItems/16303"
}

 

Many of the fields above are not available as dynamic content in the flow builder. Is there a way of referencing them?

 

Thank you

2 REPLIES 2
Expiscornovus
Dual Super User
Dual Super User

Hi @SergeyG,

 

Yes, you should be able to use an expression. As far as I am aware these type of fields are stored in the body/fields area of the response.

 

So, the expression would be something like:

triggerOutputs()?['body/fields']['Microsoft_VSTS_Scheduling_FinishDate']

 

bodyfields_azuredevops.png

Brian-M
New Member

I am trying to do something similar but simplier.  I want to exact the iteration start date from an Azure DevOps workitem into a Sharepoint list field.  What is the proper expression to do this?  Thanks!

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,463)