发送 select 多个值以在 JIRA 中创建问题

Send select multiple value to create an issue in JIRA

我正在使用 Jira rest API 创建这样的问题

IssueRestClient issueClient = getJiraRestClient().getIssueClient();
    IssueInputBuilder newIssue = new IssueInputBuilder(projectKey, issueType, issueSummary);    
    if (list != null) {
        for (Fields field : list) {                             
                newIssue.setFieldValue("customfield_" + field.getIdJira(), field.getValue());               
        }
    }
    IssueInput issueInput = newIssue.build();

但我不知道如何使用多个 select 值,例如 Gender :ManOR Woman ?

解决方案非常简单

newIssue.setFieldValue("customfield_" + field.getIdJira(),
                        ComplexIssueInputFieldValue.with("value", field.getValue()));

在我的例子中,field.getIdJira() 持有 customfieldIDfield.getValue() 持有该字段的实际值。