{"ScriptPreparationCode":"var activities = [{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[{\u0022ID\u0022:\u0022fb0125f2-387f-42c2-b8b4-b50670d7329f\u0022,\u0022Name\u0022:\u0022New Activity (1)\u0022,\u0022IsCreated\u0022:false,\u0022Error\u0022:null,\u0022IsDependentActivityOverdue\u0022:true,\u0022IsDependentActivityStarted\u0022:false,\u0022DependentActivityStatus\u0022:0,\u0022PlanId\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022PlanName\u0022:\u0022Petr Test Master Deployment Plan\u0022,\u0022SourceActivityId\u0022:\u0022ab5db126-e7cb-4a0a-a18f-03a5b4a1d7e8\u0022,\u0022DependentActivityId\u0022:\u00223e2e8fc0-974e-4c17-a052-dbee2815a931\u0022,\u0022SortOrder\u0022:1,\u0022DependencyType\u0022:0}],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u0022ab5db126-e7cb-4a0a-a18f-03a5b4a1d7e8\u0022,\u0022FakeId\u0022:\u0022ab5db126-e7cb-4a0a-a18f-03a5b4a1d7e8\u0022,\u0022Name\u0022:\u0022New Activity (4)\u0022,\u0022SortOrder\u0022:3,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:\u00222019-08-10T07:03:00.0000000\u0022,\u0022EndDateTimePlanned\u0022:\u00222019-08-20T07:03:00.0000000\u0022,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u00223.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:true,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[{\u0022ID\u0022:\u002242ff3c29-07d2-42f0-bfd8-3457b1296a0b\u0022,\u0022Name\u0022:\u0022New Activity (2) Child Deployment Plan\u0022,\u0022IsCreated\u0022:false,\u0022Error\u0022:null,\u0022IsDependentActivityOverdue\u0022:false,\u0022IsDependentActivityStarted\u0022:false,\u0022DependentActivityStatus\u0022:0,\u0022PlanId\u0022:\u0022e4113fa7-1cb8-e911-9650-509a4ccb5cb7\u0022,\u0022PlanName\u0022:\u0022Petr Test Child Deployment Plan\u0022,\u0022SourceActivityId\u0022:\u002291ed4357-3cc3-4759-8db2-22907ce075cf\u0022,\u0022DependentActivityId\u0022:\u0022e84eaf3c-f5e3-47ef-9e71-1dc18a27f715\u0022,\u0022SortOrder\u0022:2,\u0022DependencyType\u0022:3}],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u002291ed4357-3cc3-4759-8db2-22907ce075cf\u0022,\u0022FakeId\u0022:\u002291ed4357-3cc3-4759-8db2-22907ce075cf\u0022,\u0022Name\u0022:\u0022New Activity (8)\u0022,\u0022SortOrder\u0022:7,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u00227.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u002220bc30f8-b6e6-424d-b83a-336f6b14888d\u0022,\u0022FakeId\u0022:\u002220bc30f8-b6e6-424d-b83a-336f6b14888d\u0022,\u0022Name\u0022:\u0022New Activity (9)\u0022,\u0022SortOrder\u0022:8,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u00228.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u0022b6907325-8822-4d41-bb54-45bd7a30c3c4\u0022,\u0022FakeId\u0022:\u0022b6907325-8822-4d41-bb54-45bd7a30c3c4\u0022,\u0022Name\u0022:\u0022New Activity (7)\u0022,\u0022SortOrder\u0022:6,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u00226.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:true,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u002261973791-6fdb-45b7-8403-4fe1eea9439c\u0022,\u0022FakeId\u0022:\u002261973791-6fdb-45b7-8403-4fe1eea9439c\u0022,\u0022Name\u0022:\u0022New Activity (11)\u0022,\u0022SortOrder\u0022:9.5,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:\u0022eecf668a-8161-4388-a679-0738a0aeef60\u0022,\u0022GroupName\u0022:\u0022New Activity (10) Group\u0022,\u0022GroupSortOrder\u0022:\u00229.500000000000000000000000\u0022,\u0022GroupFillColor\u0022:\u0022#FFFFFF\u0022,\u0022GroupBorderColor\u0022:\u0022#FFFFFF\u0022,\u0022GroupFontColor\u0022:\u0022#0099CC\u0022,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u002240482b2d-aa3c-4565-9c95-50744814b00b\u0022,\u0022FakeId\u0022:\u002240482b2d-aa3c-4565-9c95-50744814b00b\u0022,\u0022Name\u0022:\u0022New Activity (6)\u0022,\u0022SortOrder\u0022:5,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u00225.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u002244f99359-0946-4de3-a6a7-53fccba2edaa\u0022,\u0022FakeId\u0022:\u002244f99359-0946-4de3-a6a7-53fccba2edaa\u0022,\u0022Name\u0022:\u0022New Activity (10)\u0022,\u0022SortOrder\u0022:10.5,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u002210.500000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u002281d02adf-bae2-44aa-a9c1-63e13218dfc0\u0022,\u0022FakeId\u0022:\u002281d02adf-bae2-44aa-a9c1-63e13218dfc0\u0022,\u0022Name\u0022:\u0022New Activity (0)\u0022,\u0022SortOrder\u0022:-0.5,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u0022-0.500000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:true,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[{\u0022ID\u0022:\u0022ecd1d462-7d1f-402d-bf22-81fb0549e7dd\u0022,\u0022Name\u0022:\u0022New Activity (2)\u0022,\u0022IsCreated\u0022:false,\u0022Error\u0022:null,\u0022IsDependentActivityOverdue\u0022:true,\u0022IsDependentActivityStarted\u0022:false,\u0022DependentActivityStatus\u0022:0,\u0022PlanId\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022PlanName\u0022:\u0022Petr Test Master Deployment Plan\u0022,\u0022SourceActivityId\u0022:\u00226dbb9429-6925-460a-8b72-8046fb5afa12\u0022,\u0022DependentActivityId\u0022:\u0022c14d98d8-1aad-48c5-b96a-ae6fda006203\u0022,\u0022SortOrder\u0022:2,\u0022DependencyType\u0022:0}],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u00226dbb9429-6925-460a-8b72-8046fb5afa12\u0022,\u0022FakeId\u0022:\u00226dbb9429-6925-460a-8b72-8046fb5afa12\u0022,\u0022Name\u0022:\u0022New Activity (3)\u0022,\u0022SortOrder\u0022:1.5,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:\u00222019-08-06T07:03:00.0000000\u0022,\u0022EndDateTimePlanned\u0022:\u00222019-08-09T07:03:00.0000000\u0022,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:\u002281f4f307-f378-4641-921b-858d11a02855\u0022,\u0022GroupName\u0022:\u0022New Activity (2) Group\u0022,\u0022GroupSortOrder\u0022:\u00221.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:\u0022#FFFFFF\u0022,\u0022GroupBorderColor\u0022:\u0022#FFFFFF\u0022,\u0022GroupFontColor\u0022:\u0022#0099CC\u0022,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u002288124e24-50e4-4157-ab17-8f3e31d661ec\u0022,\u0022FakeId\u0022:\u002288124e24-50e4-4157-ab17-8f3e31d661ec\u0022,\u0022Name\u0022:\u0022New Activity (5)\u0022,\u0022SortOrder\u0022:10,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:null,\u0022EndDateTimePlanned\u0022:null,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u002210.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:true,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:true,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[{\u0022ID\u0022:\u002269091608-9c9e-495b-9917-ec4098602f84\u0022,\u0022Name\u0022:\u0022New Activity (1)\u0022,\u0022IsCreated\u0022:false,\u0022Error\u0022:null,\u0022IsDependentActivityOverdue\u0022:true,\u0022IsDependentActivityStarted\u0022:false,\u0022DependentActivityStatus\u0022:0,\u0022PlanId\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022PlanName\u0022:\u0022Petr Test Master Deployment Plan\u0022,\u0022SourceActivityId\u0022:\u0022c14d98d8-1aad-48c5-b96a-ae6fda006203\u0022,\u0022DependentActivityId\u0022:\u00223e2e8fc0-974e-4c17-a052-dbee2815a931\u0022,\u0022SortOrder\u0022:1,\u0022DependencyType\u0022:4}],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u0022c14d98d8-1aad-48c5-b96a-ae6fda006203\u0022,\u0022FakeId\u0022:\u0022c14d98d8-1aad-48c5-b96a-ae6fda006203\u0022,\u0022Name\u0022:\u0022New Activity (2)\u0022,\u0022SortOrder\u0022:1,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:\u00222019-08-03T07:09:00.0000000\u0022,\u0022EndDateTimePlanned\u0022:\u00222019-08-05T07:09:00.0000000\u0022,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:\u002281f4f307-f378-4641-921b-858d11a02855\u0022,\u0022GroupName\u0022:\u0022New Activity (2) Group\u0022,\u0022GroupSortOrder\u0022:\u00221.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:\u0022#FFFFFF\u0022,\u0022GroupBorderColor\u0022:\u0022#FFFFFF\u0022,\u0022GroupFontColor\u0022:\u0022#0099CC\u0022,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0},{\u0022HasAvatar\u0022:false,\u0022Responsible\u0022:null,\u0022ResponsibleIsGroup\u0022:null,\u0022ResponsibleUserID\u0022:null,\u0022ResponsibleEmail\u0022:null,\u0022Attachments\u0022:0,\u0022IsIncludedInGroup\u0022:false,\u0022StartedBy\u0022:null,\u0022CompletedBy\u0022:null,\u0022FailedBy\u0022:null,\u0022IssuedBy\u0022:null,\u0022DisableCompleteAction\u0022:false,\u0022DisableStartAction\u0022:false,\u0022CommentsCount\u0022:null,\u0022Dependencies\u0022:[],\u0022AdditionalInformations\u0022:null,\u0022ID\u0022:\u00223e2e8fc0-974e-4c17-a052-dbee2815a931\u0022,\u0022FakeId\u0022:\u00223e2e8fc0-974e-4c17-a052-dbee2815a931\u0022,\u0022Name\u0022:\u0022New Activity (1)\u0022,\u0022SortOrder\u0022:0,\u0022PlanID\u0022:\u0022a0c158d7-15b8-e911-9650-509a4ccb5cb7\u0022,\u0022ResponsibleID\u0022:null,\u0022SystemIDs\u0022:[],\u0022Description\u0022:\u0022\u0022,\u0022IsMilestone\u0022:false,\u0022IsAutomated\u0022:false,\u0022AutomatedScripts\u0022:[],\u0022IsOptional\u0022:false,\u0022FailedDate\u0022:null,\u0022IssuedDate\u0022:null,\u0022StartDateTimePlanned\u0022:\u00222019-08-01T07:09:00.0000000\u0022,\u0022EndDateTimePlanned\u0022:\u00222019-08-02T14:09:00.0000000\u0022,\u0022FactStartDate\u0022:null,\u0022FactEndDate\u0022:null,\u0022GroupID\u0022:null,\u0022GroupName\u0022:null,\u0022GroupSortOrder\u0022:\u00220.000000000000000000000000\u0022,\u0022GroupFillColor\u0022:null,\u0022GroupBorderColor\u0022:null,\u0022GroupFontColor\u0022:null,\u0022PreDefinedGroupTaskId\u0022:null,\u0022PreDefinedGroupFillColor\u0022:null,\u0022PreDefinedGroupBorderColor\u0022:null,\u0022PreDefinedGroupFontColor\u0022:null,\u0022Status\u0022:0,\u0022UpdateToStatus\u0022:0,\u0022ActualDateTimeCompleted\u0022:null,\u0022RevisedStartTime\u0022:null,\u0022PreviousTimezoneOffset\u0022:null,\u0022IsDowntime\u0022:false,\u0022DowntimeFrom\u0022:null,\u0022DowntimeTo\u0022:null,\u0022ActivitySetsIds\u0022:[],\u0022AutomatedBuildStatus\u0022:0}];\r\n\r\n\r\n","TestCases":[{"Name":"GroupBy","Code":"var ganttData = {tasks:[], links: []};\r\n\r\nconst mapProject = (id, text, startDate, endDate, parent) =\u003E {\r\n return {\r\n id,\r\n text,\r\n unscheduled: Boolean(startDate || endDate),\r\n duration: 0,\r\n type: \u0027project\u0027,\r\n open: true,\r\n start_date: startDate,\r\n end_date: endDate,\r\n parent\r\n }\r\n}\r\n\r\nconst mapTask = (id, text, type, startDate, endDate, parent) =\u003E {\r\n const unscheduled = !Boolean(startDate \u0026\u0026 endDate);\r\n return {\r\n id,\r\n text,\r\n unscheduled,\r\n duration: !unscheduled ? moment(endDate).diff(startDate, \u0027hours\u0027) : 0,\r\n type,\r\n // open: true,\r\n start_date: startDate,\r\n end_date: endDate,\r\n parent\r\n }\r\n}\r\n\r\nconst mapLink = (d) =\u003E {\r\n return {\r\n id: d.ID,\r\n source: d.DependentActivityId,\r\n target: d.SourceActivityId,\r\n type: d.DependencyType,\r\n }\r\n}\r\n\r\n _.chain(activities)\r\n .groupBy(\u0022GroupID\u0022)\r\n .map((groupedActivities, groupId) =\u003E {\r\n if (groupId !== \u0027null\u0027) {\r\n const earliestActivity = _.minBy(groupedActivities, a =\u003E a.StartDateTimePlanned);\r\n const earliestActivityStartDate = earliestActivity \u0026\u0026 earliestActivity.StartDateTimePlanned? new Date(earliestActivity.StartDateTimePlanned): undefined\r\n const latestActivity = _.maxBy(groupedActivities, a =\u003E a.EndDateTimePlanned);\r\n const latestActivityEndDate = latestActivity \u0026\u0026 latestActivity.EndDateTimePlanned? new Date(latestActivity.EndDateTimePlanned): undefined\r\n\r\n ganttData.tasks.push(mapProject(groupId, groupedActivities[0].GroupName, earliestActivityStartDate, latestActivityEndDate, undefined));\r\n }\r\n const tasks = groupedActivities.map(a =\u003E mapTask(a.ID, a.Name, a.IsMilestone ? \u0027milestone\u0027 : \u0027task\u0027,\r\n a.StartDateTimePlanned? new Date(a.StartDateTimePlanned): undefined, a.EndDateTimePlanned? new Date(a.EndDateTimePlanned): undefined, groupId !== \u0027null\u0027? groupId : undefined))\r\n ganttData.tasks.push(...tasks);\r\n \r\n const links = _.flatMap(groupedActivities, i =\u003E i.Dependencies.map(mapLink));\r\n ganttData.links.push(...links);\r\n })\r\n .value();\r\n console.log(ganttData)","IsDeferred":false},{"Name":"Foreach","Code":"var ganttData = {tasks:[], links: []};\r\n\r\nactivities.reduce((tasks, activity) =\u003E {\r\n const start = activity.StartDateTimePlanned;\r\n const end = activity.EndDateTimePlanned;\r\n\r\n const task = {\r\n id: activity.ID,\r\n text: activity.Name,\r\n unscheduled: true,\r\n duration: 0,\r\n type: activity.IsMilestone ? \u0027milestone\u0027 : \u0027task\u0027,\r\n parent: activity.GroupID\r\n }\r\n let group;\r\n if (activity.GroupID \u0026\u0026 activity.GroupName) {\r\n group = tasks.find(g =\u003E g.id === activity.GroupID)\r\n if (!group) {\r\n group = {\r\n id: activity.GroupID,\r\n text: activity.GroupName,\r\n unscheduled: true,\r\n duration: 0,\r\n type: \u0027project\u0027,\r\n open: true\r\n }\r\n tasks.push(group)\r\n }\r\n }\r\n\r\n if (start \u0026\u0026 end) {\r\n const startDate = new Date(start);\r\n const endDate = new Date(end);\r\n task.start_date = startDate;\r\n task.duration = moment(endDate).diff(startDate, \u0027hours\u0027);\r\n task.unscheduled = false;\r\n\r\n if (group) {\r\n group.unscheduled = false;\r\n if (group.start_date === undefined || (group.start_date instanceof Date \u0026\u0026 startDate \u003C group.start_date)) {\r\n group.start_date = startDate;\r\n }\r\n if (group.end_date === undefined || (group.end_date instanceof Date \u0026\u0026 endDate \u003E group.end_date)) {\r\n group.end_date = endDate;\r\n }\r\n }\r\n }\r\n tasks.push(task);\r\n\r\n if (activity.Dependencies) {\r\n ganttData.links = ganttData.links.concat(activity.Dependencies.map((d) =\u003E ({\r\n id: d.ID,\r\n source: d.DependentActivityId,\r\n target: d.SourceActivityId,\r\n type: d.DependencyType\r\n })))\r\n }\r\n\r\n return tasks\r\n}, ganttData.tasks);\r\n\r\nconsole.log(ganttData);","IsDeferred":false}]}