Select list with options the values in this field from other issues and the option to add new values

I need to have a new customized field, type 'select list'. The options must be the values in this field from other issues. Also we want the option for the user to add new values as options in this select lst. 


1 answer

0 votes

That's going to require an add-on for a new field type.

It's also going to be quite a hard one - the baseline select list is a set of options in a llist set by the admins.  You're asking for a dynamic recursive list where the option list is drawn from existing issues, and of course, the ability to add ad-hoc ones (without being an admin and doing it from the interface).

However, what you are asking for is pretty much a "labels" field.  It's not a drop-down, by  it will suggest existing entries as people type.  That's probably a far better option than writing a new field type.

Thank you Nic,

I want this field for the error messages. If I use a label field then my message is broken to many labels. I saw an answer to use - or _ but we do not want to say to our users to write the message in such way. 

Is there an add-on we can use?

Not one that does it the way you describe.

There is another option.  With the ScriptRunner add-on, you can create "Behaviours".  To get close to what you want:

  • Create a simple select list with some of the errors you know about already
  • Add a last option with a name like "New error"
  • Create a new short text field, again with a name like "New error"
  • Use a ScriptRunner Behaviour to hide the text field until a user selects "new error" in the select list

For bonus points, you could write a script that says "when a developer accepts an issue with a new error logged, automatically add it to the options in the select list"

Is it possible to implement the above option for Jira Service Desk portal?

Behaviours does not work for Service Desk yet, but I'm told it's on the roadmap for very soon.

For now, is it possible to implement this functionality in the customer portal using Web Resource Built-In Script?

Not that I know of.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Jan 15, 2019 in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

270 views 4 2
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