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.
How to disable the Event_dispatch when adding label?
Yeah, It will disable the sending of notification
But i can see the Issue Updated event still was triggered, how can i disable that?
I think you have to add the labels to the transientVars before the issue is created. But I don't know how.
It looks like you're new here. Sign in or register to get started.