Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

can user picker custon field return email addess and not user id

I am trying to fetch email address using a single user picker custom field that I created.
But the picker field returns user ID of the user selected and not the email address.

I need it to return email to feed it to Okta workflows to be used for further action.

In Okta workflows I even tried to feed this user id using the Atlassian get user card to get the user details but for some reason Atlassian is not able to find any user nor group.



3 answers

1 accepted

0 votes
Answer accepted

@Mikael Sandberg  got that working after some research.

I put the user picker field field to copy into another text field 

{{issue.fields.customfield_12258.emailAddress}}  - This returns email address

{{issue.Approvers.displayName}} - This returns just the name

otherwise it will just return the user id.

This work for me for the moment(not very ideal solution)but what I would have wanted is the API card to work which should just sent the user id to fetch the name but its not working.
I tried postman to test sending userid, not sure but why but its not working

0 votes
Mikael Sandberg Community Leader Jun 07, 2022

The short answer is no, the user picker field cannot return the email address. The reason is GDPR. What you can do is once you have the accountId you get the email via the Users resource.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,836 views 37 48
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you