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.
@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
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
All values listed here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.