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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.