Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-75958

Confluence "Jira Issue Macro" does not show status lozenge colour from issues linked from Jira DC 9.0.0+

    XMLWordPrintable

Details

    Description

      Issue Summary

      Confluence "Jira Issue Macro" does not show status lozenge colour from Jira DC instances on 9.0.0+.

      Steps to Reproduce

      1. Install Jira 9.0.0 with sample Software Project (e.g. named Test Project)
        • Navigate to Jira Administration » Issues » Workflows
        • Edit the Software Simplified Workflow for Project TP
        • All the remaining Statuses with Allow all statuses to transition to this one for:
          • CLOSED
          • RESOLVED
          • REOPENED
          • OPEN
        • Navigate to Issues » Search for Issues
          • Transition a few tickets so there are tickets in each of the various statuses
      2. Open Confluence Cloud
        • Connect the two as application links
        • Create a new Confluence page with a Jira Issue Macro
        • Use this JQL:
          project = "TP" order by key
          
        • Publish the page

      Expected Results

      The Jira Issue Macro should show the Status lozenge as these colours:

      1. Green (Done, Resolved, Closed)
      2. Blue (In progress)
      3. Grey (Reopened, Open, To Do)

      Actual Results

      The Jira Issue Macro shows all the Status lozenge in grey :

      Data from Jira

      • Jira Issue Macro end point:
        • <Jira-Base-URL>/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?tempMax=20&returnMax=true&jqlQuery=project%3D"TP"+&field=summary&field=issuetype&field=issuekey&field=created&field=duedate&field=reporter&field=assignee&field=priority&field=updated&field=resolution&field=status&field=link&field=type

      Jira Issue macro Rest End Point in Jira 7/8 returned:

      <item>
                      <link>http://localhost:47102/j7102/browse/TP-23</link>
                          <key id="10022">TP-23</key>
                  <summary>Test Issue Jira 7</summary>
                      <type id="10001" iconUrl="http://localhost:47102/j7102/images/icons/issuetypes/story.svg">Story</type>
                                      <priority id="3" iconUrl="http://localhost:47102/j7102/images/icons/priorities/medium.svg">Medium</priority>
                              <status id="10001" iconUrl="http://localhost:47102/j7102/" description="">Done</status>
                          <statusCategory id="3" key="done" colorName="green"/>
                                          <resolution id="10000">Done</resolution>
                                              <assignee username="admin">admin</assignee>
                                          <reporter username="admin">admin</reporter>
                                  <created>Fri, 3 Jun 2022 04:33:30 +1000</created>
                      <updated>Wed, 15 Jun 2022 13:08:30 +1000</updated>
                                      <due></due>
                                                                              </item>
      

      Jira Issue macro Rest End Point in Jira 9 returns a different colorName value:

      <item>
                      <link>http://localhost:8900/j900/browse/TP-23</link>
                          <key id="10022">TP-23</key>
                  <summary>Test Issue Jira 9</summary>
                      <type id="10001" iconUrl="http://localhost:8900/j900/images/icons/issuetypes/story.svg">Story</type>
                                      <priority id="3" iconUrl="http://localhost:8900/j900/images/icons/priorities/medium.svg">Medium</priority>
                              <status id="10001" iconUrl="http://localhost:8900/j900/" description="">Done</status>
                          <statusCategory id="3" key="done" colorName="success"/>
                                          <resolution id="10000">Done</resolution>
                                              <assignee username="admin">admin</assignee>
                                          <reporter username="admin">admin</reporter>
                                  <created>Mon, 4 Jul 2022 21:47:48 +1000</created>
                      <updated>Sun, 17 Jul 2022 06:22:48 +1000</updated>
                                      <due></due>
                                                                                          </item>
      

      Workaround

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dtoohey Dylan
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: