Forums

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

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

Gursimran Singh June 7, 2022

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

1 vote
Answer accepted
Gursimran Singh June 13, 2022

@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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 7, 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