It's all about the answers!

Ask a question

RTC: How to add calculated values to custom attributes


Becky McDermott (90935) | asked Sep 26 '18, 4:04 p.m.

 I have two custom attributes associated with a custom Work Item Type.  These attributes are:


1) Submitter
2) Submitted Date

and I would like to make them a default calculated value and then be read-only (i.e. don't allow the user to set them).

I would like the value of Submitter to default to the logged in user and the value of Submitted Date to default to the date/time of when the work item is saved.

These attributes are different from  Created By and Created Date because they correspond to a particular state transition.  I know there is a Javascript API but I have not found a good example for how to set a field to the current logged in user.

Can someone point me to a good example for how to achieve what I am trying to do?

Be the first one to answer this question!


Register or to post your answer.