Hi,
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 4.1.3.8)
Thanks in advance,
Paulina
The following should work but it's not for some reason... I'll try to keep digging:
issueInputParameters.getActionParameters().put("labels", ["foo", "bar"] as String[])
Hi @Jamie Echlin [Adaptavist],
If you will have any update, please let me know.
The first thing I checked was also issueInputParameters as suggested in Escalation Service documentation but it was not working...
Thanks in advance,
Paulina
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.