无法通过SOAP将值插入JIRA中的自定义级联列表



我用这些值创建了一个自定义级联列表

TestCatA
- CatA_1
- CatA_2
TestCatB
- CatB_1
- CatB_2

创建自定义远程字段并发布

RemoteCustomFieldValue[] actionParams2 = new RemoteCustomFieldValue[]{
         new RemoteCustomFieldValue("customfield_10012", null, new String[]{"TestCatA"}),
         new RemoteCustomFieldValue("customfield_10012", "1", new String[]{"CatA_1"})};
issue.setCustomFieldValues(actionParams2);

但是第二个值在中总是失败

faultString: com.atlassian.jira.rpc.exception.RemoteValidationException: {customfield_10012=Value: 'CatA_1' is an invalid Option} : []

有任何提示或工作样本吗?

这从JIRA 4.3更改为JIRA 4.4。它过去使用值作为字符串,但我认为现在使用ID。同样在Python JIRA CLI中,我不得不使用customfield_10012:1作为子选项的名称。

最新更新