How to add a Readonly Custom Field whose value(s) can be REPEATED/MULTIPLE(like comments)

I have an Custom Field of multiline-textArea type, which is ReadOnly and  Wiki Style Rendered. The value(s) will be filled programatically from another tool.

What i need in addition, is this particular custom-field can contain multiple values(not predefined as in MultiValueComboBox). For example, an Issue can contain multiple comments, that are added at different time.


So my Custom Field should also be able to contain multiple (0 - n) different values per Issue. Better if they are collapsible too.


5 answers

1 vote

You will need to find or write a plugin to provide a field like this.  All the standard custom fields are true fields - they contain a single value or set of values in one place, not multiple lines.

Thanks Nic Brough,

how to write a plugin to add above field



Start at You'll need a "custom field" module. You have a couple of big design decisions to make. If you want to stick to the basic way of doing things, you'll need to consider how to store multi-line data in the database in a a way that your field can extract and convert to a comment-like structure, and when being added to, it needs to take the existing data and append rather than overwrite. Or, you can do it in a more structured way - you'll need a new table in the database, structured for multiple lines per issue, with each line having author, date, content etc, and a way to read/write it directly - this is a little more complex than a simple custom field plugin, but is the correct approach

Seriously, if you already have this in place for single value, why don't you build a workaround like this?

Instead of overwriting the current value in that field at updates, why don't you append (or prepend) the new value to that? If you need some metadata (like update time), you can also include that in the string appended.

I know it is not fancy, but can be built with minimal efforts and may solve your problem.

@Ferenc Kiss [Midori] & @Nic Brough [Adaptavist]

I appreciate both of your thoughts. I understand that creating a new table in database would be more structured, but it will take hell lot of efforts. So i was wondering is there a way to:

  1. Tag JIRA Comments : so that Comments from external tools can be grouped in a separate TAB. And they dont appear in the regular JIRA Comments Tab.
  2. An plugin is already available in the Market Place, so that i don't have to reinvent the wheel.
  3. Can a CustomField hold large Text(much greater than 255 characters)?


0 votes

1. No 2. I'm not aware of one for tagging comments or re-inveinting the wheel as another comment type field 3. Yes - free text is unlimited

Thanks FerencKiss & Nic Brough I appreciate both of your thoughts Can you please share the some links for get the data from external database in a custom field

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,672 views 18 21
Read article

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