Scriptrunner Select List Conversion, setting field to readonly

Daniel Garcia May 2, 2017

I've got a "Select List (multiple choices)" that I'm converting using the following code in a behaviour

getFieldById('customfield_11362').convertToMultiSelect()

This changes the field to something that resembles the labels field

I sometimes need to make this field readonly.

  • getFieldById('customfield_11362').setReadOnly(true) doesn't do it
  • getFieldById('customfield_11362-textarea').setReadOnly(true) makes it looks like it is readonly

How would I make the field readonly?

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Daniel Yelamos [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2017

Hi Daniel.

We have this issue in our backlog and it will be fixed sometime in the near future. If you want to track its progress, you can follow:

https://productsupport.adaptavist.com/browse/SRJIRA-2244

If you have any other questions do not hessitate to ask.

Cheers

Daniel 

Suggest an answer

Log in or Sign up to answer