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
Community showcase
Published Feb 13, 2019 in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

517 views 0 12
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