It's all about the answers!

Ask a question

How to generate the email details in workitem in RPE?


Lochana R (234) | asked Aug 31 '20, 12:25 a.m.

 Hi,


I want to generate the user details such as email address in Workitem.

Please let me know how to achieve the same.

Regards,
Lochana

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Aug 31 '20, 5:04 a.m.
If you want to print creator's email address, you can directly print it by adding workitem/workItem/creator query. workitem/workItem/creator/emailAddress will provide the email address.
To get the details of all contributers, you can workitem/contributor query and get the details. You can have an JavaScript array to hold details (workitem/contributor/uniqueId, workitem/contributor/emailAddress) so that you can read email address from the array.
Lochana R selected this answer as the correct answer

Comments
Lochana R commented Aug 31 '20, 5:34 a.m.
 Hi,
Thanks for the response

Can you please provide the JavaScript for contributor details?

Regards,
Lochana

One other answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Aug 31 '20, 7:20 a.m.
edited Aug 31 '20, 7:23 a.m.

This is how you can read into an array:

You can then get / print the email from array based on uid.

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.