convert script field from string to single choice select list

hello im using this scrip field:

import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.issue.fields.FieldManagerimport com.atlassian.jira.issue.fields.CustomField

def CategoryCF = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Catagory_for_EazyBi") as CustomFielddef tripleValues = CategoryCF.getValue(issue)if (tripleValues == null)

{return null}

return tripleValues.toString()

how can I convert the field result as a single choice select list.

thanks.

1 answer

1 accepted

This widget could not be displayed.

Scripted fields are display only, they don't gather or hold data.  A select list that doesn't do anything isn't a lot of use.

What are you trying to achieve?

i have a script field that  show me the project category.

and i wanted to use this field in the rich filter dashboard  add-ons.  the add on support gave walkaround 

 

thanks anayway.

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 14 hours ago 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...

41 views 1 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