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

Missing summary and invalid image urls in jira macros when converting storage to EXPORT_VIEW

    XMLWordPrintable

Details

    Description

      When converting a jira macro for a single issue from storage to EXPORT_VIEW HTML using the contentbody/convert/export_view REST API, the image urls are not properly replaced. Instead the velocity expressions are included in the HTML.
      Furthermore the issue summary is not included.

      Example Storage Format
      <ac:structured-macro ac:name=\"jira\" ac:schema-version=\"1\" ac:macro-id=\"913edd62-a7d1-4b54-9e15-aee228732e4e\">
      	<ac:parameter ac:name=\"server\">K15t Software</ac:parameter>
      	<ac:parameter ac:name=\"columns\">key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution</ac:parameter>
      	<ac:parameter ac:name=\"serverId\">61b6191d-d412-3043-a96c-75b7bceaed1f</ac:parameter>
      	<ac:parameter ac:name=\"key\">EXP-421</ac:parameter>
      </ac:structured-macro>
      
      Resulting EXPORT_VIEW HTML
      <span class="jira-issue" data-jira-key="EXP-421">
          <a href="https://k15t.jira.com/browse/EXP-421?src=confmacro" class="jira-issue-key"><img class="icon" src="$iconUrl"/>EXP-421</a>
          <span class="summary"></span>
          <span class="jira-status"> ( <img class="icon" src="$statusIcon"/> ) </span>
      </span>
      

      The velocity expressions $iconUrl and $statusIcon were not replaced. Therefore these image do not appear at all.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              9a0e36f56f3a Jens Henrik Jens Henrik
              Votes:
              10 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: