HI!,
I'm trying to change the label of an issue with the next code:
IssueInputBuilder issueBuilder = new IssueInputBuilder(issue.getProject().getKey(), issue.getIssueType().getId(), issue.getSummary());
issueBuilder.setFieldValue("labels",Arrays.asList("label1", "label2"))
.build();
client.getIssueClient().updateIssue(issue.getKey(), issueBuilder.build());
When I updated I get a exception:
java.util.concurrent.CompletionException: RestClientException{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={labels=Field 'labels' cannot be set. It is not on the appropriate screen, or unknown.}, errorMessages=[]}]}
How Can I change the label?