It's all about the answers!

Ask a question

[closed] Limit the size of summary field in WI


megha mittal (15112615) | asked Oct 28 '09, 2:41 a.m.
closed Jul 24 '15, 3:22 a.m. by Ralph Schoon (63.1k33646)
Hi,
My concern here is that is there any other way supported right now to limit the size of "summary" field to some fix number of characters.

The only way i can think of is writing own precondition( Though not tried yet) , but was wondering if something like this already exist.

Thanks

The question has been closed for the following reason: "The question is answered, right answer was accepted" by rschoon Jul 24 '15, 3:22 a.m.

Accepted answer


permanent link
Patrick Streule (4.9k21) | answered Oct 28 '09, 5:09 a.m.
JAZZ DEVELOPER
Hi,
My concern here is that is there any other way supported right now to
limit the size of "summary" field to some fix number of
characters.

The only way i can think of is writing own precondition( Though not
tried yet) , but was wondering if something like this already exist.

The limit is 1024 characters, but it is currently not customizable.

This would be part of the more general topic of validation. I created an
umbrella item for this:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/97771

--
Regards,
Patrick
Jazz Work Item Team
Ralph Schoon selected this answer as the correct answer

2 other answers



permanent link
R Z (1273253) | answered Jul 24 '15, 3:12 a.m.
Team,

I am using work item summary field and i want to restrict summary field characters to 55.

Can we do? Without any scripting.

Thanks


Comments
R Z commented Jul 24 '15, 3:12 a.m. | edited Jul 24 '15, 3:21 a.m.

i am using RTC v5.0.


permanent link
Ralph Schoon (63.1k33646) | answered Jul 24 '15, 3:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As mentioned above the summary is a medium String/HTML and thus limited to 1024 bytes. This limit is not customizable. What you can do is:

  1. Use JavaScript and create a validator
  2. Use Java and create a validator
  3. Use Java and create a workitem save advisor plugin extension; The advisor interface is a little different to the participant interface used in Rational Team Concert Extensions Workshop but the workshop must be done to understand how this works and how to get there by Setting up Rational Team Concert for API Development