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

时间:2018-08-29 13:51:30

标签: jira jira-rest-api jira-rest-java-api

我正在使用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();

但是我不知道如何使用GenderManWoman之类的多个选择值来做到这一点?

1 个答案:

答案 0 :(得分:0)

解决方案非常简单

t = np.linspace(0,T,2001); # define the end time T before
y0 = [ 0, 0, 0 ]           # standard convention is that everything is zero for negative times
y = odeint(odesys, y0, t)  # add arguments for higher accuracy if needed
x, v, x1 = y.T             # transpose of a list of tuples is a tuple of lists
plt.plot(t,x); plt.show()  # as example that should work

在我的情况下,newIssue.setFieldValue("customfield_" + field.getIdJira(), ComplexIssueInputFieldValue.with("value", field.getValue())); 持有field.getIdJira()中的ID,而customfield持有字段的actuel值。