-
-
Save kegster/ac6106fd72323481e1379d5224ee23ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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