Uploaded image for project: 'Xporter for Jira Cloud'
  1. Xporter for Jira Cloud
  2. XPORTERCLOUD-2634

Impossible to iterate over HistoryEntries[n].ChangedItemsCount

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Unresolved
    • Xporter Cloud 8.0.0
    • Xporter Cloud 9.4.2
    • Templates
    • None
    • Cloud

    • UNCOVERED

    Description

      It is not possible to iterate over HistoryEntries[n].ChangedItemsCount. This mapping is always returning 0, so nothing is exported inside this iteration.

      Steps To Reproduce:

      • Perform some changes in the fields on one Jira issue.
      • Use the following code to export its history:
      #{for historyEntries}
      	${HistoryEntries[n].Author}
      	${HistoryEntries[n].Created}
      	${HistoryEntries[n].CreatedDate}
      	${HistoryEntries[n].CreatedDateTime}
      	${HistoryEntries[n].ChangedItemsCount}
      	#{for i=HistoryEntries[n].ChangedItemsCount}
      		${HistoryEntries[n].ChangedItems[i].Field}
      		${HistoryEntries[n].ChangedItems[i].From}
      		${HistoryEntries[n].ChangedItems[i].To}
      	#{end}
      #{end}
      

      Actual Result:

      Nothing is exported inside:

      	#{for i=HistoryEntries[n].ChangedItemsCount}
      		${HistoryEntries[n].ChangedItems[i].Field}
      		${HistoryEntries[n].ChangedItems[i].From}
      		${HistoryEntries[n].ChangedItems[i].To}
      	#{end}
      

      and ${HistoryEntries[n].ChangedItemsCount} exports 0.

      Expected Result:

      The changes of the items should be exported as we can see in the documentation: Iterating Issue History Entries

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pmax Paulo Aleixo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: