Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-3018

Be able to render a link to a user property (e.g. email) rather than user's profile

    • Icon: Suggestion Suggestion
    • Resolution: Timed out
    • None
    • None
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Currently username renders a link to the user's profile.
      What would be nice is to be able to generate, directly, an email link - ala username:email - which will generate a mailto link to that user's email address.

            [CONFSERVER-3018] Be able to render a link to a user property (e.g. email) rather than user's profile

            JamesM added a comment -
            • for simplicity of the user interface for end-users, how about making the syntax for properties of user profiles somewhat compatible with 'metadata' properties from regular pages?
            {metadata-from:phone|~jamesmortimer}
            • are these properties already available from the reporting plugin?
            • for customizability, how about allowing the site admin to overload the ~ symbol with a custom user macro. That way, it could be customized to return any number of properties, or even to point to an external user profile, but still use the standard confluence syntax to refer to users.

            JamesM added a comment - for simplicity of the user interface for end-users, how about making the syntax for properties of user profiles somewhat compatible with 'metadata' properties from regular pages? {metadata-from:phone|~jamesmortimer} are these properties already available from the reporting plugin? for customizability, how about allowing the site admin to overload the ~ symbol with a custom user macro. That way, it could be customized to return any number of properties, or even to point to an external user profile, but still use the standard confluence syntax to refer to users.

            I can imagine a series of useful parameters for the user profile macro.

            Something like: [~username:username|phone|email] would return their user name, phone number and email address from their profile.

            ...like: [~username:username=mailto|phone] would render their user name, but the link would be open email to to their address, and their phone number.

            I'd like something similar with userlister (i.e. {userlister:group=groupname|username=mailto|phone}

            Also, how about [mailto:~username] rendering as the user's name in the profile, but behaving like [mailto:username@company.com].

            Sean Kennedy added a comment - I can imagine a series of useful parameters for the user profile macro. Something like: [~username:username|phone|email] would return their user name, phone number and email address from their profile. ...like: [~username:username=mailto|phone] would render their user name, but the link would be open email to to their address, and their phone number. I'd like something similar with userlister (i.e. {userlister:group=groupname|username=mailto|phone} Also, how about [mailto:~username] rendering as the user's name in the profile, but behaving like [mailto:username@company.com].

            Or we could extend the userlister to handle something along those lines.

            Nick Faiz [OLD] (Inactive) added a comment - Or we could extend the userlister to handle something along those lines.

            Nick,
            Agreed - it's a small detail which could be very useful.

            Cheers,
            Nick

            Nick Faiz [OLD] (Inactive) added a comment - Nick, Agreed - it's a small detail which could be very useful. Cheers, Nick

            In conjunction with CONF-3017, you could then do something like:
            username:phone - which would still render a link to the users profile, but using the phone number as the text.

            Nick Minutello added a comment - In conjunction with CONF-3017 , you could then do something like: username:phone - which would still render a link to the users profile, but using the phone number as the text.

              barconati BillA
              3b1ae0ec93c9 Nick Minutello
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: