...
- Display in Destination Forecast the Name of the PI, which is raft.data.CostObject.SUPERVISOR.
- Get forecast cost object name from raft.data.CostObject.COTITLE, display it in Destination Forecast/ Forecast Cost Object field.
Get the list of forecasts to display by searching raft.data.CostObject.Forecasts\[\] for the workset_category == PI. All PI Forecasts should be listed in the Destination Forecast by calling GET: /rest/v2/costobject/:id/scenario and looking for workset_category == PI. All PI Forecasts should be listed in the Destination Forecast List.Wiki Markup - On click, call publish/share forecast with the selected forecast key as the destination scenarioKey, and the rest of the data from above as needed. If successful, close dialog, else show error in dialog somewhere.
...