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

Auto adding field contents to comments? Is this possible during "save"?

Is it possible to add the contents of a field to a custom comment field automatically while saving the work item?

0 votes



2 answers

Permanent link
There are two possibilities that comes in my mind. One is to create an operation participant and the other is to create a script-based calculated value, if you want the value of the source field to be copied over to the destination field even before the save operation.
For Operation participant, take a look at the Extension Workshop
For script based calculated values, see Attribute Customization
Also, refer to this post where Dinesh answered a similar question like yours.

1 vote

Comments

Thanks. Will check this out 


Permanent link
I have to ask why this is needed?  If you look at the history tab, you can see a log of all of the attribute changes to a particular work item over time.  Not sure why you would want an automated addition of field changes to a custom comment field.  RTC has a built in history that we had to architect around with CQ, with the custom comment field to support audit.

0 votes

Comments

The reason for not using "history" is that it records all and I only want an audit log for one field only so it's "easy to read" for the  users


In CQ, I can do this on the "commit" hook or "value changed hook" depends on need

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
× 12,023
× 457
× 369

Question asked: May 13 '13, 11:12 a.m.

Question was seen: 4,176 times

Last updated: May 14 '13, 7:07 a.m.

Confirmation Cancel Confirm