SOLVED

Character limits of default value in DevOps Multiple Lines field

Copper Contributor

Hi Developers,

 

I intend to use multiple lines field as a text box, in which I can embed hyperlinks with <a> tag and plain text into. However, I found the default value of multi-line field has a character limitation. I am wondering what the specific character limit of default value is and if there is an alternative approach to embed hyperlink which can be clicked by users directly.

default value.png

Thanks a lot

7 Replies

The default String fields take a max of 255 characters. You could use Text field type instead of the default String field, which supports entry of a text string that can contain more than 255 Unicode characters.

You can check the document FIELD (Definition) element reference for some more details

@Robina Thanks! But I didn't find the PlainText Text field. Could you please help me with more details? 

Haowei715_0-1692069538441.png

 

Hello @Robina, could you please add some details how to do it? Thank you
best response confirmed by Haowei715 (Copper Contributor)
Solution

@Haowei715 hi, I actually managed to do this via rules (the same section as Work Item editing). I added a rule as: When work item is created, set a value for the field ... . HERE input takes up to 4000 characters 🙂  hope it helps

Thanks! This approach works for me 🙂

@OlgaPatapava but what about if I would like to type text as default so, when user create work item already has pre-defined text more that 255 characters. Now if I want to add in default field is limited.

@OlgaPatapava This has the limitation when we create a copy of workitem Azure Devops considers it as new workitem and add the default values rather tan copying the existing workitem field values

1 best response

Accepted Solutions
best response confirmed by Haowei715 (Copper Contributor)
Solution

@Haowei715 hi, I actually managed to do this via rules (the same section as Work Item editing). I added a rule as: When work item is created, set a value for the field ... . HERE input takes up to 4000 characters 🙂  hope it helps

View solution in original post