can we change the single select list field to multi select list in Jira?
Asked by shivani shirguppi:

can we change the single select list field to multi select list in Jira?


Answers:
author: Hannes Obweger - JXL for Jira
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115),

unfortunately you cannot change the type of a custom field; you'll have to create a new custom field, transfer over the values from the old custom field, and then delete the old custom field.

For copying the values over, I've seen people use Automation rules for this, or do a CSV export, make changes to the CSV file, and re-import it.

Alternatively, if you're open to solutions from the Atlassian Marketplace, you'll have more options. I'll provide more information below.

Hope this helps,

Best,

Hannes

comments: author: Hannes Obweger - JXL for Jira
body: ... and to expand on my last point: If you're open to solutions from the Atlassian Marketplace, this would be easy to do with the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2749655).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you'd do in e.g. Google Sheets or Excel. You can also *bulk edit* your fields, using copy/paste. This makes it very easy to copy values from one column (i.e., field) to another column/field.

This is how it looks in action:

![copy-paste-across-field-types.gif](https://community.atlassian.com/t5/image/serverpage/image-id/311780i90D9EC817402815E/image-size/large?v=v2&px=999 "copy-paste-across-field-types.gif")

You only need to make sure that the values *fit* the new field. If that's not already the case, you can e.g. copy your values to Excel, manipulate them there, and then copy them back to JXL.

I should also add that JXL can do much more than the above: From support for configurable *issue hierarchies* , to *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting* .

Any questions just let me know!


author: Sreenivasaraju P
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115) ,

As per my knowledge, you can't change custom field type in jira cloud. you have to create new field with the required type .

more details :

You can't change the field's type (for example, making a single-select field into a multi-select field). To change a field's type, recreate the field using the desired type.

<https://support.atlassian.com/jira-cloud-administration/docs/edit-or-delete-a-custom-field/>


author: Raju
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115)   

Could you pls try this script   

import com.atlassian.jira.component.ComponentAccessor  
import com.atlassian.jira.issue.MutableIssue  
import com.atlassian.jira.issue.fields.CustomField  
import com.atlassian.jira.issue.util.DefaultIssueChangeHolder

def customFieldManager = ComponentAccessor.getCustomFieldManager()  
def issueManager = ComponentAccessor.getIssueManager()

// Replace with your custom field IDs  
def singleSelectField = customFieldManager.getCustomFieldObjectByName("Single Select Field Name")  
def multiSelectField = customFieldManager.getCustomFieldObjectByName("New Multi-Select Field Name")

def issues = ComponentAccessor.getIssueManager().getIssueObjects(issueManager.getIssueIdsForProject(ComponentAccessor.getProjectManager().getProjectObjByKey("PROJECTKEY").id))

issues.each { issue -\>  
def singleSelectValue = issue.getCustomFieldValue(singleSelectField)  
if (singleSelectValue) {  
def multiSelectValues = \[singleSelectValue\] // Create a list with the single select value  
issue.setCustomFieldValue(multiSelectField, multiSelectValues)  
issue.store() // Save the changes  
}  
}


Tags: cloud

jira-cloud