Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Using a Scriptrunner email handler, we would like to prefill the label field at ticket creation.


We have a Scriptrunner email handler set up in JIRA and working as it should. Now we would like to prefill a specific value in the label field within the initial JIRA ticket creation process.

Does anyone have an example? Of even something similar?

2 answers

0 votes

There's a console based script for setting labels over at - it should be quite easy to adapt to be part of an email handler.

If i understand when creating a ticket, you want to prefill values in the standard field labels.

If so, you can do it with behaviours (Script Runner).

def values = ["TEST-1", "TEST-2"]



I'm afraid that won't work - it's a Behaviour, not code to be used in a scripted email handler.

Like Djiga Sene likes this

Suggest an answer

Log in or Sign up to answer

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