Populating custom field with e-mail address of logged in user

Hello Everyone,

I have a free form text custom field which I want to populate
automatically with the logged in user’s e-mail address before ticket
creation, i.e. when “New ticket in” is clicked. Similar to the way
that the requester field is populated by the logged in user’s e-mail
address at this stage. In our organisation, the person who enters a
ticket is most often not the requester, thereby we need this extra field
to know who entered the case.

I don’t think this is possible via a scrip. Does anyone have any neat
way of doing this?

Stewart
Stewart Tranter
Computing Services
Loughborough University

E: s.g.tranter@lboro.ac.uk
W: http://www.lboro.ac.uk/computing/
T: +44 (0) 1509 223719
F: +44 (0) 1509 223989

You can hide this field from users who create ticket and use
Request Tracker Wiki to
populate value automaticaly.
Would this solve your task?

Next code (untested) could be used to get properties of the user who
created ticket in the scrip:
$TicketObj->CreatorObj->EmailAddress;
Use it to set default value.On 11/24/05, Stewart Tranter S.G.Tranter@lboro.ac.uk wrote:

Hello Everyone,

I have a free form text custom field which I want to populate
automatically with the logged in user’s e-mail address before ticket
creation, i.e. when “New ticket in” is clicked. Similar to the way
that the requester field is populated by the logged in user’s e-mail
address at this stage. In our organisation, the person who enters a
ticket is most often not the requester, thereby we need this extra field
to know who entered the case.

I don’t think this is possible via a scrip. Does anyone have any neat
way of doing this?

Stewart

Stewart Tranter
Computing Services
Loughborough University

E: s.g.tranter@lboro.ac.uk
W: IT Services | Loughborough University
T: +44 (0) 1509 223719
F: +44 (0) 1509 223989


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O’Reilly Media at http://rtbook.bestpractical.com

WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at http://bestpractical.com/services/training.html

Best regards, Ruslan.

Hello Everyone,

I have a free form text custom field which I want to populate
automatically with the logged in user’s e-mail address before ticket
creation, i.e. when “New ticket in” is clicked. Similar to the way
that the requester field is populated by the logged in user’s e-mail
address at this stage. In our organisation, the person who enters a
ticket is most often not the requester, thereby we need this extra field
to know who entered the case.

I don’t think this is possible via a scrip. Does anyone have any neat
way of doing this?

The person who created the ticket is already stored. You could
write a Scrip that fills in a custom field with the e-mail
address of that person.

-Todd