I am using an java issueInputBuilder for a tool that automatically submits issues. I'm able to set the summary, reporter, etc..., and then create the issue, but cannot set custom fields. I have looped through the meta data and verified I have the correct ids of the fields.
I have tried two ways:
final IssueInput requestTypeUpdater = new IssueInputBuilder()
.setFieldValue(SUPPORT_REQUEST_TYPE_ID, "Value")
.build();
then calling:
issueRestClient.updateIssue(issueKey, requestTypeUpdater).get(5, TimeUnit.SECONDS);
after having created the issue and claimed it.
I have also tried setting it during creation (ie the builder has info about other stuff). Depending on the field I get one of two errors:
"customfield_21640=Field 'customfield_21640' cannot be set. It is not on the appropriate screen, or unknown."
"customfield_22840=Could not find valid 'id' or 'value' in the Parent Option object."
Is there a way around these errors?