Skip to content

Instantly share code, notes, and snippets.

@ciis0
Last active January 28, 2021 20:33
Show Gist options
  • Save ciis0/a2e548fe9bebc53dfa91bfbe6578583d to your computer and use it in GitHub Desktop.
Save ciis0/a2e548fe9bebc53dfa91bfbe6578583d to your computer and use it in GitHub Desktop.
Exporting timeline iterations from RTC/Jazz to Outlook via CSV

Exporting timeline iterations from RTC/Jazz

  1. locate timelines via RPT API (Script 1)
  2. store result to file, convert to csv with powershell (Script 2)
  3. Import CSV with LibreOffice Calc because Excel and Outlook are too stupid to parse the timestamps properly
  4. save as CSV again, will use display values Outlook understands
  5. in outlook
    1. FileOpen & ExportImport/Export
    2. Import from another program or fileComma Separated Values
    3. Browse for your CSV file and choose destination folder
    4. Map Custom Fields..., drag&drop fields from left to corresponding fields on the right.
    5. Import
  6. Profit!

Script 1

# locate project by itemId
https://rtc.example.com/rtc5a/rpt/repository/foundation?fields=projectArea/projectArea/(name|itemId)
# show timelines
https://rtc.example.com/rtc5a/rpt/repository/foundation?fields=developmentLine/developmentLine[projectArea/itemId=_fJa5TuB7EeWm-bMUxjFWHQ]/*
# top level
https://rtc.example.com/rtc5a/rpt/repository/foundation?fields=developmentLine/developmentLine[itemId=_4DriACQUEeazc4KJdkzQug]/*
# second level
https://rtc.example.com/rtc5a/rpt/repository/foundation?fields=iteration/iteration[itemId=_4DriASQUEeazc4KJdkzQug]/*
#  All neted second level iterations
https://rtc.example.com/rtc5a/rpt/repository/foundation?fields=iteration/iteration[itemId=_4DriASQUEeazc4KJdkzQug]/children/children/(name|startDate|endDate)

Script 2

[xml]$iterations = get-content .\foundation.xml
$iterations.foundation.iteration.children | % { $_.children } | select | Convertto-csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment