Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Jens Goetz October 9, 2019

Hello,

 

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

Jens

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
luka montin January 20, 2021

@Jens Goetz   did you ever get this to work ? 

TAGS
AUG Leaders

Atlassian Community Events