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
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Atlassian Community Events