Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/372.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使用Java jira Rest Cllient更新jira中问题的单个select字段_Java_Spring_Jira - Fatal编程技术网

无法使用Java jira Rest Cllient更新jira中问题的单个select字段

无法使用Java jira Rest Cllient更新jira中问题的单个select字段,java,spring,jira,Java,Spring,Jira,我正在尝试将单个select字段更新为null not selected 问题是,当我更新问题以获得所选值时,它工作得很好,当我创建问题时,该字段为null也工作得很好 我使用一个映射,将值设置为我从json传递的值,然后我尝试这样做更新我只是写了一个不起作用的,其余的都很好: map.put("publishable", new FieldInput("customfield_10318", null)); IssueInput newValues = new IssueInput(map,

我正在尝试将单个select字段更新为null not selected

问题是,当我更新问题以获得所选值时,它工作得很好,当我创建问题时,该字段为null也工作得很好

我使用一个映射,将值设置为我从json传递的值,然后我尝试这样做更新我只是写了一个不起作用的,其余的都很好:

map.put("publishable", new FieldInput("customfield_10318", null));

IssueInput newValues = new IssueInput(map, null);
issueClient.updateIssue(issueKey, newValues).claim();
就像当我进行更新时,不允许我将字段的新值设置为null


如何将字段的值更新为null?

正如您应该知道的,单选择字段将数据保存为数组,因此当您将字段设置为null时,它将不起作用,您应该使用的是Collections.emptySet,这必须起作用