It's all about the answers!

Ask a question

Autopopulate Summary with data from other fields in the same work item


Mike Shkolnik (9809161143) | asked Nov 06 '13, 6:45 p.m.
I would like the Summary field of a specific work item type to auto-populate with OWNER_ID - EffectiveDate, where OWNER_ID is the login ID of the Owned By selection of the work item and EffectiveDate is a custom date field of the work item.

One answer



permanent link
Ralph Schoon (63.2k33646) | answered Nov 07 '13, 2:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Mike,

I think, you have these options you can try, starting with low and then increasing complexity.

  1. Use JavaScript and a calculated value provider. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization and https://jazz.net/library/article/1093 Lab 5 for hints and examples. This would be the easiest option. I am not sure you can get the Onwer ID, I believe you can only get either the owner UUID [getName()] and the user name [getLabel()].
  2. Use a JavaBased calculated Value Provider. I provide example code here: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ 
  3. Work Item Save Participant, which would actually save a second time after setting the summary
I would go for 1 or 2.

Make the Summary field read only if you calculate from the input values.

Your answer


Register or 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.