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

Custom Field user-picker should render display name within JIRA issue macro.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 8.4.0
    • 5.6.3, 6.3.2, 6.4.2, 6.12.2, 6.14.1, 6.13.4, 6.13.6, 6.13.8, 6.15.7, 7.4.4, 7.4.11, 7.13.0, 7.13.2, 7.13.5, 7.13.9, 7.14.0, 7.19.16, 7.19.17
    • Macros - Jira Macros

      Note

      This fix relies on changes to both Confluence and Jira to function. As a result, both Confluence 8.4.0 and later, and Jira 9.9.0 and later will be required for this fix. Using the newer version of Confluence with an older version of Jira will continue to function as described below.

      Steps to reproduce - JIRA 6.3.1-

      1. Create a project in JIRA and create custom field with User Picker.
      2. Set the application links.
      3. Go to Confluence and insert the XML URL.
      4. Be sure you specify the custom field when you're adding it to Confluence.

      What you expect to see:

      1. See the Display name

      What do you see:

      1. See the username

      Information

      tested in Jira 8.5.3
      When the HTTP Dump Log is enabled in Jira during the request of Jira Issue Macro, we can see the below information coming from Jira:

      example information for a single issue
          			<item>
          			                <link>http://localhost:8853/j853/browse/MST-1</link>
          			                    <key id="10000">MST-1</key>
          			            <summary>Do this</summary>
          			                <type id="10000" iconUrl="http://localhost:8853/j853/secure/viewavatar?size=xsmall&amp;avatarId=10318&amp;avatarType=issuetype">Task</type>
          			                                <priority id="3" iconUrl="http://localhost:8853/j853/images/icons/priorities/medium.svg">Medium</priority>
          			                        <status id="10000" iconUrl="http://localhost:8853/j853/images/icons/status_generic.gif" description="">To Do</status>
          			                    <statusCategory id="2" key="new" colorName="blue-gray"/>
          			                                    <resolution id="-1">Unresolved</resolution>
          			                                        <assignee username="-1">Unassigned</assignee>
          			                                    <reporter username="admin">The Mighty Administrator</reporter>
          			                            <created>Wed, 21 Apr 2021 12:15:48 +1000</created>
          			                <updated>Fri, 14 May 2021 15:34:44 +1000</updated>
          			                                <due></due>
          			                                                                                <customfields>
          			                                                <customfield id="customfield_10207" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
          			                        <customfieldname>Development</customfieldname>
          			                        <customfieldvalues>
          			                            
          			                        </customfieldvalues>
          			                    </customfield>
          			                                                                <customfield id="customfield_10102" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
          			                        <customfieldname>Pick Someone</customfieldname>
          			                        <customfieldvalues>
          			                            <customfieldvalue>caliburn</customfieldvalue>
          			
          			                        </customfieldvalues>
          			                    </customfield>
          			                                    </customfields>
          			    </item>
      

      Here, we can see that Jira is returning both Username and Display Name for the reporter field. Meanwhile, for the userpicker field only Username is returned

      Jira Field Username Display Name
      reporter admin The Mighty Administrator
      customfieldtypes:userpicker caliburn

      This issue is likely caused by JRASERVER-20361 from the Jira end

      Additional information:

      This issue also observed with Jira cloud and Confluence server integration.

      • When using Jira issue macro on Confluence page to fetch issue which contains custom Field user picker (multiple-users) it shows id instead if name however Jira cloud shows name.
      • Jira Cloud:
      • Confluence server:   

        1. image-2022-03-25-17-28-02-951.png
          image-2022-03-25-17-28-02-951.png
          339 kB
        2. image-2022-03-25-17-27-10-107.png
          image-2022-03-25-17-27-10-107.png
          1017 kB
        3. image-2022-03-25-17-11-57-800.png
          image-2022-03-25-17-11-57-800.png
          519 kB
        4. image-2022-03-25-17-07-51-051.png
          image-2022-03-25-17-07-51-051.png
          828 kB
        5. screenshot-2.png
          screenshot-2.png
          828 kB
        6. screenshot-1.png
          screenshot-1.png
          245 kB
        7. JIRA Query.jpg
          JIRA Query.jpg
          22 kB
        8. ConfluenceQuery.jpg
          ConfluenceQuery.jpg
          29 kB

            [CONFSERVER-35256] Custom Field user-picker should render display name within JIRA issue macro.

            Hello b653b26886d0,

            As mentioned in the Note at the top of the bug description, the fix relies on both Confluence and Jira. Your Confluence version is matching with that but in order to fix to work as expected, your Jira should be upgraded to 9.9.0 or higher.
            Hope this helps.

            Kind regards,
            Basar Beykoz

            Basar Beykoz added a comment - Hello b653b26886d0 , As mentioned in the Note at the top of the bug description, the fix relies on both Confluence and Jira. Your Confluence version is matching with that but in order to fix to work as expected, your Jira should be upgraded to 9.9.0 or higher. Hope this helps. Kind regards, Basar Beykoz

            Still facing this problem in Confluence Server 8.5.5 and Jira 9.4.15

            Christian Heep added a comment - Still facing this problem in Confluence Server 8.5.5 and Jira 9.4.15
            Basar Beykoz made changes -
            Affects Version/s New: 7.19.17 [ 106326 ]
            Suat Kandiş made changes -
            Affects Version/s New: 7.19.16 [ 106144 ]
            Emily Christmas made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 830704 ]
            Emily Christmas made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 830704 ]
            SET Analytics Bot made changes -
            UIS Original: 112 New: 111

            A fix for this issue is available in Confluence Server and Data Center 8.4.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available in Confluence Server and Data Center 8.4.0. Upgrade now or check out the Release Notes to see what other issues are resolved.
            James Whitehead made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS Original: 126 New: 112

              5e496a614b63 Diclehan Erdal
              wzanchet William Zanchet (Inactive)
              Affected customers:
              126 This affects my team
              Watchers:
              125 Start watching this issue

                Created:
                Updated:
                Resolved: