I have set an esaclation service which is closing issues based on some filter (it works perfectly). But I wanted to add a label as an additional action to the issue - I have this code
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.label.LabelManager def user = ComponentAccessor.jiraAuthenticationContext.getLoggedInUser() LabelManager labelManager = ComponentAccessor.getComponent(LabelManager) def labelSet = ["some labels"] as Set labelManager.setLabels(user,issue.id,labelSet.toSet(),false,false)
This code is setting the label properly but I dont get the information who set this label in the issue history.
Could you please tell my what I am doing wrong (esaclation service runs under my username and status change is logged properly but addition of the label is not... variable user is defined in my code also).
(JIRA version 6.4.12, Service runner version 184.108.40.206)
Thanks in advance,
Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG