Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Display custom fields on standard links presentation

   This is a follow-up to a question I previously posted on the Jazz forum (https://jazz.net/forum/questions/111709/automatically-append-text-to-the-summary-field).  My ultimate purpose is to make the standard links display for our parent work items more useful for our teams.  In other words, if two of our custom work item fields were to be displayed before the summary of each child work item on the standard links tab, that would be very beneficial to our teams.  (The standard links presentation seems to show the ID and Summary of each related work item.)

   The answers I received to my previous question suggested that we either need to use a script based calculated value (https://jazz.net/wiki/bin/view/Main/AttributeCustomization - this article happens to be for RTC v3.0) or an Operation Participant (Java plug-in).  Further reading seemed to suggest that the script approach is preferred over the Java plug-in approach.  (The recommendation seems to be first, use built-in functionality.  Second, use scripting.  Third, use Java plug-in.)

   Before I go too far with scripting, I wanted to see if there is a simpler approach. 

Question #1)  Is there a way to copy and modify the standard links presentation to pull this off?  We essentially want the standard links display but with a couple extra (custom) fields displayed for each linked child work item.  See the example below.  (Those custom fields would only be populated for a certain type of work item.)  Would that be simpler than scripting an appending of fields to the summary field? 

Question #2) Is there an even better way to accomplish this?  (My experimentation with query results was disappointing in terms of the ability to list parent and child attributes together on the same result row.  Manual drill down by row was needed to see related work-item information.) 

Question #3) If scripting the append text to summary is the simplest and best answer, do we need to use the general script editor or is there a way we can use the standard field customization screens maybe with a line or two of scripting behind a few fields to have custom fields appended to the beginning of the Summary field?

As an example, one way to script this might be the following:

On save of work item:

1.       Search Summary field for first occurrence of a delimiter character.

2.       If delimiter found, clear any text from the summary up to that point and make sure the delimiter remains with a space before and after the delimiter.

3.       If delimiter not found, append a space, delimiter, space to the beginning of the Summary field.

4.       Append Source code name, space, and Source code version to the beginning of the summary (leaving space, delimiter, space in place following the two appended fields).

Standard field:

1.       Summary (Example: “CM47: Add new function to the Case Management screen)

Custom fields:

1.       Source code name (Example: “SPKG_CASE.PKB”)

2.       Source code version (Example: “1.5”)

Result (Summary field):

·         SPKG_CASE.PKB 1.5 / CM47: Add new function to the Case Management screen

0 votes



2 answers

Permanent link

I know we discussed this since years in several work items, at Innovate, Voice, AVP Meetings etc. but the world is not turning much in this area. It looks like it is just not important for IBM or they are not using the links tab for their own development. It's very quiet in the area of Work Item Editor. No enhancements since CLM 2011.

So I created (again) a work item. Maybe you can enhance or comment it.

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=266675

BTW, such a functionality is in ClearQuest available since a decade, so it's should be standard also for RTC.

0 votes


Permanent link
Unfortunately, there is no mechanism to override the link display code. It shows workitem number and the summary. Scripting is 'preferred' cause you don't have to reboot the server to install or maintain the code. You should be able to use the scripted value provider to supply the calculated value of the summary field, but the link will still display workitem number summary field. I think you should be able to do your logarithm in JavaScript, but you will have to check for it already having been done, cause the script will need torun every time the summary field is displayed.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,117

Question asked: May 23 '13, 9:52 a.m.

Question was seen: 5,592 times

Last updated: May 25 '13, 10:46 a.m.

Confirmation Cancel Confirm