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.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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

    Description

      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:   

      Attachments

        1. ConfluenceQuery.jpg
          ConfluenceQuery.jpg
          29 kB
        2. image-2022-03-25-17-07-51-051.png
          image-2022-03-25-17-07-51-051.png
          828 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-27-10-107.png
          image-2022-03-25-17-27-10-107.png
          1017 kB
        5. image-2022-03-25-17-28-02-951.png
          image-2022-03-25-17-28-02-951.png
          339 kB
        6. JIRA Query.jpg
          JIRA Query.jpg
          22 kB
        7. screenshot-1.png
          screenshot-1.png
          245 kB
        8. screenshot-2.png
          screenshot-2.png
          828 kB

        Issue Links

          Activity

            People

              5e496a614b63 Diclehan Erdal
              wzanchet William Zanchet (Inactive)
              Votes:
              126 Vote for this issue
              Watchers:
              122 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: