Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ScriptRunner Behavior for set Default Value Bug Edited

Every script I try to set a default value turns the field into an un-editable field, as the default has become a permanent selection and will not let the user change it. We are using SR in Jira Data Center 8.5.3. Has anyone else ran into this problem? Just wondering if this is this a bug or a script error? 


Both these scripts set the default, but then the field section can not be changes. 

Example 1 -

Example 2-


1 answer

1 accepted

0 votes
Answer accepted

Hi there,

For example 1, you would need to implement the scripts on the initialiser instead of server-side script.

Since the server-side script will run the script every time you want to make changes on the select list hence the behaviour that you are seeing.



That makes perfect sense, thank you for pointing that out. I will give it another try using the initializer instead. 


@Amirul _Adaptavist_ That worked and now it can be changed from the default, but now there is a new problem. After the field value is changed from the default and you go back in to edit any field, the default is pre-populated, instead of showing what was selected. Once you save, it changes the field, so there is no way to keep your selection if changed from the default. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

92 views 2 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you