Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

背景

JIRA目前没有直接查询可选类字段可选值的接口


接口

/rest/custom/1.0/customfield/{projectKey}/{issueTypeId}/{fieldId}/optionlist

方法

GET

返回结果

   [
        {
            "id": 10000,
            "value": "部门一",
            "disabled": false
        },
        {
            "id": 10001,
            "value": "部门二",
            "disabled": false
        },
        {
            "id": 10002,
            "value": "部门三",
            "disabled": false
        }
    ]

说明

说明
id可选项的ID值
value可选显示的值
disabled是否被 禁用

字段可以设置其上下文,应用到不的项目不同的问题类型上,因此需要获得可选值 的时候,需要指定是在哪个项目哪个问题类型下。


  • No labels