Scriptrunner Select List Conversion, setting field to readonly

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

688 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you