2012-02-06 107 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