Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Auto filling email address from user picker field

Marius Skoglund
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2022

Hi.

I have a portal with a User Picker. Once the form has been submitted, I want the email address of the user to populate another field after ticket creation. Is this possible?

We are using LDAP and these are all internal users.

 

Example form:

Subject: Test ticket

User picker: Marius Skoglund

Description: Text

Example ticket:

Subject: Test ticket

User picker: Marius Skoglund

Email address: marius.skoglund@emailaddress.com

Description: Text

 

 

2 answers

1 accepted

1 vote
Answer accepted
John Funk
Community Champion
September 26, 2022

Hi Marius,

You should be able to do that with the Automation For Jira app as well. There is a free Lite version and a paid Pro version. 

Marius Skoglund
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 19, 2022

Hi, I have tried this, however when specifying where to copy the information from, I cannot find the User Picker as a field to copy from.

Untitled.png

John Funk
Community Champion
October 19, 2022

Instead of using the Copy from process, click the 3 dots to the side and chose Set value.

Then type this in the space: {{issue.User Picker.emailAddress}}

where User Picker is the exact name of your custom field. 

Like Marius Skoglund likes this
Marius Skoglund
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 19, 2022

Thank you, John. This did indeed work, and was a lot easier than other methods I have been trying.

Like John Funk likes this
John Funk
Community Champion
October 19, 2022

Great! I am glad that worked for you. 

Like Marius Skoglund likes this
0 votes
MOlejko September 26, 2022

Hi!

Are you using ScriptRunner? 

If so, you can create a custom script field and retrieve the user's email address from the user picker field 

Marius Skoglund
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 19, 2022

Hi again, sorry for the long response time. I do use scriptrunner, and have tried this without luck. I am new to Jira administration and an absolute beginner with scripts. What examples or templates I have found so far online does not yield any results, so I am not sure where to start.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events