JIRA throws an error when trying to insert an URL string longer than 255 characters in an URL Custom Field

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

It's not possible to insert an URL string longer than 255 characters in an URL Custom Field Type when creating an issue, eg:

次のようにします。

  1. Having an URL Custom Field in your issue screen
  2. Trying to insert an URL string longer than 255 characters into the URL Custom Field

The following error message appears:

"The entered text is too long. It exceeds the allowed limit of 255 characters."

原因

Due to database constraints, the limit for URL field is 255 Characters. The table 'customfield' contains the information of all custom fields created in the instance, and the column 'defaultvalue' has the 255 character limitation as default in the database, and manually changing this limitation wont have any effect on the product. Also, the table 'customfieldvalue' contains the information of each input made on a customfield, and the 'stringvalue' column contains exactly the information you type in a URL custom field. It also has a default 255 characters limitation and changing it limitation won't have any effect on the product.

回避策

There are two possible workarounds at the moment:

1) Create a new Custom Field in the project, selecting the Text Field (multi-line) field type, then associating it to the screen of the project. You'll have a brand new custom field that will accept more than 255 characters.

 Text Field (multi-line): A multiline text area custom field to allow input of longer text strings.

The only restriction is that this field type will accept any string, including non-URLs texts, and it doesn't return any error if this happens. However, if you input a string starting with 'http://' or 'https://', this field type will recognise as an URL and generate the hyperlink normally.

2) Use any URL shortener programs to make shorter URLs to input in an URL custom field type.

提案

There is the suggestion below to allow the ability to increase this setting in JIRA as administrator:

JRASERVER-47759 - 課題詳細を取得中... ステータス

 

最終更新日 2017 年 7 月 12 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.