Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-38732

Ability to set character limit on custom fields i.e. jira.text.field.character.limit.customfields

    • 259
    • 33
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Added 29 February 2024

      Currently it's not possible to change the character limit of the value of custom fields.

      • Text Field (single line) - 255 characters
      • Text Field (multi-line) - 32767 characters

      This character limit should be configurable per field.

      Original Description

      jira.text.field.character.limit is respected for description, environment, comments.

      However some add-ons could use a large custom field instead of their own database table to track things so having jira.text.field.character.limit affect custom fields by default is risky.

      Propose new jira.text.field.character.limit.customfields (so it falls right next to existing) it should default to 0 as well.

      Bonus: This way a jira-system-administrator can control it above a jira-administrator who may be making custom fields and not always understanding implications.

      There is already a request for setting limits on a single custom field (especially at least at creation). vs Hack of of making a field a system field...

      Workaround

      A possible workaround is using Forms to enforce a character limit in a custom field field. Let's consider that you want to impose this limit on the Description field. Here’s how you can do it:

      1️⃣ Go to Project settings → Request management → Forms
      2️⃣ Click Create form → Create blank
      3️⃣ Add a field: Add field → Paragraph
      4️⃣ Set the field name in the Display name box
      5️⃣ Link it to the Description field in Linked Jira Field
      6️⃣ Set the character limit in Minimum and Maximum fields (e.g., Maximum = 25)
      7️⃣ Save changes

            [JRACLOUD-38732] Ability to set character limit on custom fields i.e. jira.text.field.character.limit.customfields

            This is causing us pain as we have been using custom fields for long implementation plans, for example. This should be addressed.

            Kassidy Kearey added a comment - This is causing us pain as we have been using custom fields for long implementation plans, for example. This should be addressed.

            Hi - is there any further update on this request? Are there technical considerations/ limitations preventing implementation of this? We have multiline text fields in our server instance that currently have 50000 characters and fear that will lose information with migration to cloud.

            deepak.aravindan added a comment - Hi - is there any further update on this request? Are there technical considerations/ limitations preventing implementation of this? We have multiline text fields in our server instance that currently have 50000 characters and fear that will lose information with migration to cloud.

            so what's happening with this ? 
            jira.text.field.character.limit.customfields is still not available for editing in advanced settings 
            the current symbol count limit is really frustrating as external links such as sharepoint contain very large html links 

            Angelika Bukina added a comment - so what's happening with this ?  jira.text.field.character.limit.customfields is still not available for editing in advanced settings  the current symbol count limit is really frustrating as external links such as sharepoint contain very large html links 

            MattS added a comment -

            Thanks for the info. It still needs to be added to the docs

            MattS added a comment - Thanks for the info. It still needs to be added to the docs

            Starting with JIRA 6.4.1 the jira.text.field.character.limit property also applies to text custom fields. There's a new marker interface com.atlassian.jira.issue.customfields.TextCustomFieldType to be used when length of a text custom field is to be validated. Base text custom fields classes in JIRA implement this interface, namely GenericTextCFType and StringCFType. It also applies to any custom fields types extending these base types.
            See JRA-28519 for more details.

            Piotr Klimkowski (Inactive) added a comment - Starting with JIRA 6.4.1 the jira.text.field.character.limit property also applies to text custom fields. There's a new marker interface com.atlassian.jira.issue.customfields.TextCustomFieldType to be used when length of a text custom field is to be validated. Base text custom fields classes in JIRA implement this interface, namely GenericTextCFType and StringCFType . It also applies to any custom fields types extending these base types. See JRA-28519 for more details.

              Unassigned Unassigned
              3e81f6146e3f MC
              Votes:
              51 Vote for this issue
              Watchers:
              40 Start watching this issue

                Created:
                Updated: