How to set "Labels" field value?

Edited

I'm trying to create a new ticket with the field "Label" filled with some labels, like this:

 

I have an array of labels to the "Label" field:

String[ ] labels = new String[ ] {"ABC","135"};

and I'm trying to fill the "labels" field with this array, like this: 

IssueInputBuilder inputBuilder = new IssueInputBuilder(projectKey, issueType, issueSummary);

inputBuilder.setFieldValue("labels", labels);

 

But I'm having an error:

Exception in thread "JavaFX Application Thread" com.atlassian.jira.rest.client.api.domain.input.CannotTransformValueException: Any of available transformers was able to transform given value. Value is: [Ljava.lang.String;: [Ljava.lang.String;@3b6b1644

 

How can I do this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events