It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add Label with Escalation Service - not shown in issue history

Paulina Wegrzyn Feb 29, 2016


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

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

Thanks in advance, 


1 answer

0 votes
JamieA Feb 29, 2016

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[])
Paulina Wegrzyn Mar 07, 2016

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,


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar invitation: Generate custom Jira Cloud PDF reports and exports

Jira may be a staple part of your workday, but your colleagues, customers, business partners or an auditor might need information presented in a different format, that is easy to access and read. And...

61 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you