You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
There is not spezial Methode in the class IssueInputBuilder. But how to add a Label?
Thanks
Community moderators have prevented the ability to post new answers.
Just managed to get it working!
issueBuilder.setFieldValue("labels",Arrays.asList("label1", "label2"));
The suggestion to use "editmeta" is wrong (or, at least, has become wrong by late 2018). A correct example using PUT to the issue endpoint can be found here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use the 'editmeta' URL for doing that. It requires the same argumentas as the 'issue' URL. We have some examples of editing issues via REST:
- https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues
Then, you can use a sniplet like this:
{ "update": { "fields": { "labels": [ "bugfix", "blitz_test" ], } } }
Best regards,
Lucas Timm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And how i use this with the Java Rest API?
That's my way to create a ticket.
final IssueInputBuilder issueInputBuilder = new IssueInputBuilder(ticket.getProject(), issueTypeID, summary) .setDescription(ticket.getDescription()) .setAssigneeName(ticket.getAssignee()) .setPriorityId(priorityID); final BasicIssue basicCreatedIssue = issueClient.createIssue(issueInputBuilder.build(), pm);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check this issu, vote up to implement this feature
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way to achieve this using issueBuilder.setFieldValue? I have tried variations on
issueBuilder.setFieldValue("labels", labelArray);
where the labelArray parameter is a String array, an array list, or similar but so far have not succeeded...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.