跳到主要内容

Display conditions

使用display conditions,可以控制应用模块在UI上是否显示。

Display conditions只是控制应用的显示,并不能限制敏感数据的访问。

操作符

Display conditions支持以下逻辑操作符:

  • and
  • or
  • not

例子

这个例子说明应用会在以下情况满足一个时显示:

  • 事项类型是Epic或者Bug
  • 空间key是TEST而且租户是osc
itemPanel:
- key: hello-world-panel
displayConditions:
or:
itemType:
- Epic
- Bug
and:
workspaceKey: TEST
not:
tenant: osc

属性支持

目前支持四种属性,只在team模块生效。

nametypedescription
tenantstring | string[]tenant key
workspaceKeystring | string[]workspace key
itemTypestring | string[]itemType key
itemIdstring | string[]item Id

tenant

支持所有team模块

workspaceKey

支持以下team模块

  • workspacePage
  • itemAction
  • itemPanel
  • itemActivity
  • viewAction

itemType

支持以下team模块

  • itemAction
  • itemPanel
  • itemActivity

itemId

支持以下team模块

  • itemAction
  • itemPanel
  • itemActivity