The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
luka montin
January 20, 2021

@Jens Goetz   did you ever get this to work ? 

TAGS
AUG Leaders

Atlassian Community Events