IWorkItemFormNavigationService interface
Host service for opening the work item form
Methods
open |
Opens a new work item of the specified type. The host page will display the new work item in a dialog, or it may update the current page view, depending on the current page. |
open |
Opens the specified work item. The host page will display the work item in a dialog, or it may update the current page view, depending on the current page. |
Method Details
openNewWorkItem(string, {[fieldName: string]: Object})
Opens a new work item of the specified type. The host page will display the new work item in a dialog, or it may update the current page view, depending on the current page.
function openNewWorkItem(workItemTypeName: string, initialValues?: {[fieldName: string]: Object}): Promise<WorkItem>
Parameters
- workItemTypeName
-
string
The name of the work item type to open
- initialValues
-
{[fieldName: string]: Object}
(Optional) A dictionary of any initial field values to set after opening the new work item.
Returns
Promise<WorkItem>
A promise that returns a work item when the work item dialog is closed. If the workitem was not saved before closing the dialog, the promise will return null
openWorkItem(number, boolean)
Opens the specified work item. The host page will display the work item in a dialog, or it may update the current page view, depending on the current page.
function openWorkItem(workItemId: number, openInNewTab?: boolean): Promise<WorkItem>
Parameters
- workItemId
-
number
The id of the work item to open
- openInNewTab
-
boolean
(Optional) If true, opens the work item in a new tab. Default is false
Returns
Promise<WorkItem>
A promise that returns a work item when the work item dialog is closed. If openInNewTab is true, the promise will return null
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示