2012-02-06 121 views
0

插入JIRA值到自定义级联列表创建这些值的自定义级联列表无法通过SOAP

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} : [] 

任何提示或工作的样本?

感谢您的任何想法!

回答

0

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

+0

几乎没有意义继续使用SOAP。因为Atlassian正在放弃支持REST。我开始寻找REST API。 – javadude 2012-02-16 07:51:36