【问题标题】:How to add button control on Azure DevOps workitems page如何在 Azure DevOps 工作项页面上添加按钮控件
【发布时间】:2020-10-30 08:29:19
【问题描述】:

我必须开发 AzureDevOps Extension 以在工作项表单页面上添加按钮控件,并且单击按钮需要显示 html 弹出窗口。我一直在关注链接https://developer.microsoft.com/en-us/azure-devops/components/button#basic-buttons 以获取我使用的链接中提供的按钮和弹出窗口

import * as React from "react";
import { Button } from "azure-devops-ui/Button";
import { ButtonGroup } from "azure-devops-ui/ButtonGroup";

我想要实现的样机模型:

点击提交按钮后弹出窗口必须显示

当用户输入详细信息时,用户名必须填写在第一个窗口的用户名字段中。

请建议是否可以在工作项页面上使用 AzureDevOps Extension 添加设计?

【问题讨论】:

  • 请检查我的回答是否对您有帮助。如果您在此过程中遇到任何问题或困难,请随时告诉我。
  • 嗨@JaneMa-MSFT,谢谢你的回答,我会尝试更新。

标签: azure-devops azure-devops-extensions


【解决方案1】:

您想要的功能应该有机会实现。我找到了一个名为Action Button Control 的扩展。它的Readme 详细说明了如何向工作项页面添加按钮。

以下步骤供您参考:

  1. Export the work item type definition
  2. 更改工作项类型定义。点击WebLayout and Control elements了解详细信息。
  3. 编写您要执行的操作。点击Add a custom control to the work item form了解详细信息。
  4. Import your work item type definition

【讨论】:

    猜你喜欢
    • 2021-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-28
    • 1970-01-01
    • 2021-06-29
    相关资源
    最近更新 更多