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

ScriptRunner for Jira - Behaviours - Cannot set form value of Labels custom field



while it is possible to set the Labels system field, for example, with the following code:

getFieldById(LABELS).setFormValue("my label")


it is not possible to set a Labels custom field, for example, with the following code:

getFieldById("customfield_XXXXX").setFormValue("my label")
// or getFieldByName("XXXXX").setFormValue("my label")

Please not that I did not test this code in the initialiser, but in the server-side script of a custom field.


Is this a known limitation or bug? We are using version 5.5.9 of the plugin.


Best regards


1 answer

@Jens Goetz   did you ever get this to work ? 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

190 views 1 6
Read article

Atlassian Community Events