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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

convertToMultiSelect only saves the last selected value

We have a simple Behaviour to convert a single select field to a multi-select: 

getFieldByName("Craft").convertToMultiSelect()

When I edit an issue using this Behaviour, I can select multiple values but only the one I choose last is actually saved, and no more than one value is ever saved.

I tried it this way too, but no change:

getFieldByName("Craft").convertToMultiSelect([ 
ajaxOptions: [
query: true, // keep going back to the sever for each keystroke
minQueryLength: 0,
keyInputPeriod: 500,
formatResponse: "general",
]
])

We're running Scriptrunner 6.0.0-p5 on Jira Service Desk 4.6.1.

2 answers

1 accepted

You cant convert single select to multi select. It may have the same appearance but you cant store multiple values in a single select select list field.

You must have a text field to do that.

What is the current field type which you are converting ?

Like I said, it's a single select.

Suggest an answer

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

Learn how to request and manage app requests in the Marketplace

G’day everyone! Super exciting news coming from the Marketplace. We have now fully rolled out the ability for end-users to submit app requests to admins directly from within the product! No longer ...

43 views 1 5
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