Hi,
I found that i have to create issue first,
then use the new issueid to validateAddLabel(User, issueId, label) and LabelService.addLabel(User, Result, false).
How can i add a issue with labels?
Not Create Issue before add label into it?
You can use
def labelManager = ComponentManager.getComponentInstanceOfType(LabelManager.class) labelManager.addLabel(currentUser, issue.id, 'username', false)
to add labels without notification.
Yeah, It will disable the sending of notification
But i can see the Issue Updated event still was triggered, how can i disable that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you have to add the labels to the transientVars before the issue is created. But I don't know how.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.