我正在使用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();
但是我不知道如何用qazxsw poi这样的多个选择值来做到这一点:qazxsw poor qazxsw poi?
解决方案很简单
Gender
在我的情况下,Man
持有Woman
的newIssue.setFieldValue("customfield_" + field.getIdJira(),
ComplexIssueInputFieldValue.with("value", field.getValue()));
,而field.getIdJira()
持有该领域的实际价值。