Skip to content

Instantly share code, notes, and snippets.

@kegster
Created July 28, 2016 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kegster/ac6106fd72323481e1379d5224ee23ab to your computer and use it in GitHub Desktop.
Save kegster/ac6106fd72323481e1379d5224ee23ab to your computer and use it in GitHub Desktop.
har_output = {
:current_markups => []
}
# har_output.current_markups = []
all_markup_sets = $current_case.getMarkupSets
query = "guid:ab659529-f163-4256-b269-5070412fe2d2"
items = $current_case.search(query)
all_markup_sets.each_with_index do |markup_set,ms_index|
items.each do |item|
item_pages = item.getPrintedImage.getPages
item_pages.each_with_index do |printed_page,p_index|
page_markups = printed_page.getMarkups(markup_set)
har_output.current_markups.push(page_markups)
# page_markups.each_with_index do |markup,m_index|
# har_output.current_markups <<
# end # page_markups.each_with_index
end # item_pages.each_with_index
end #items.each
end # all_markup_sets.each_with_index
$response.setBody( har_output )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment