Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

List Custom Field with Arbitrary Values

hagai.wechsler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2022

Hi,

I want to create a custom field for my project, which lets the user insert as many URLs (or strings, for that matter) as they would like, with no predefined set of options as given by the multi select list custom field.

The best compromises I thought of are:

  1. Using the rich text custom fields, and separating each URL with a newline character. This feels like a hard-to-validate and inconvenient way of solving this.
  2. Using the labels custom field, but this means that countless of labels will be created and stored. This also means that the user would have to create a label each time when updating an issue. 

I really think this could be a useful custom field, and I would love to have it by default :)

2 answers

1 accepted

1 vote
Answer accepted
Oliver Siebenmarck _Polymetis Apps_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2022

Hi @hagai.wechsler ,

Welcome to the community!

There is an URL custom field type, but of course that's only a single URL.

I don't think the label-based option will work well, as you'll likely want the URLs to be clickable links.

The rich text field will likely be the best approach, although I agree that it is not easy to validate. Still possible, but you'll need some kind of Jira Expression based Validator App for your Workflow (in my biased opinion Cloud Workflows is a great choice, but there are many others).

Having said all that, I would actually recommend looking into building your own custom field using Atlassian's Forge platform. While there is some development effort, it should be rather straight forward to build and deploy a custom solution for your team. Especially, if you already have in-house technical knowledge. If you want to go that route, I'd start here:

 

Hope that helps,
 Oliver

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2022

Welcome to the Atlassian Community!

You need to decide if you want a field that can accept new values from the user or not.  Label are ideal for what you describe for the end-user, but you then say that you want to limit what they can put into the field.  Which is it?

hagai.wechsler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2022

My use case is to have a field which is a list of Github commit links. I want the user, per issue, to insert the related commits.

I don't want to limit what they can put into the field, but only to validate that they are in a given format. In this case - a URL. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events