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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
Join discussion

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