は私の解像度です:
CustomField csUserField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName(fieldName);
IssueService issueService = ComponentAccessor.getIssueService();
IssueInputParameters issueInputParameters = issueService.newIssueInputParameters();
issueInputParameters.addCustomFieldValue(csUserField.getId(), value_string);
issueInputParameters.setSkipScreenCheck(true);
issueInputParameters.setRetainExistingValuesWhenParameterNotProvided(true, true);
UpdateValidationResult updateValidationResult = issueService.validateUpdate(user, issue.getId(), issueInputParameters);
if (updateValidationResult.isValid())
{
IssueResult updateResult = issueService.update(user, updateValidationResult);
if (!updateResult.isValid())
{
log.warn("ISSUE has NOT been updated. Errors: {}\n", updateResult.getErrorCollection().toString());
}
else
{
log.warn("ISSUE has been updated.\n");
}
}
else
{
log.warn("ISSUE has NOT been updated. Errors: {}\n", updateResult.getErrorCollection().toString());
}
が、これは質問や答えますか? –
私は質問ではないので、この質問をトピックとして閉じようとしています。 – khelwood
6つの質問に対する答えです。それらに対するすべての答えは2017年に時代遅れであり、私を助けませんでした。私は10の評判を持っていないので、私は質問として自分の答えを書くことに決めました。どこにでもコメントを残すことができなければ、他に何をすべきですか? –