Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,863
Community Members
 
Community Events
168
Community Groups

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
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

172 views 1 6
Read article

Atlassian Community Events