IT Monkey will place code here as examples of what Cireson's consulting team has to offer as well as examples for public consumption to benefit the Microsoft System Center community as a whole.
DISCLAIMER
All files and projects located here come as is and without any warranty or support. We will attempt to improve the projects as time goes on based on customer and community demand. Comments and improvements are welcome as well as customization requests. Your use of these Cireson Uploads is subject to our Terms of Use.
Cireson's support team has no information on these projects outside of what you have available and will not provide support for these enhancements, extensions, and scripts.
Dont forget to checkout solutions uploaded by our customers, partners and community members here.
Simple Print View
SMP_SimplePrint
This will generate a simple print view of a given work item in the Cireson Portal for Service Manager. It will list all properties that have values in a single grid. It will also show the Action Log, Reviewers(if the Work Item is a Review Activity),and the Work Item History.
https://github.com/justinkwork/SMP_SimplePrintAfter the success of my Powershell version of Export to HTML, I decided to give a portal task a try. Please be aware that I'm no javascript expert and this is very hacked together, but it does seem to work fairly well at least in my lab. I welcome all feedback, requests, and contributions!
Comments
A feature request to this is implementing it for KB articles too
I just installed this but am unclear on how exactly to history. Is this modified in the custom.js?
Per the GitHub page:
showHistory - Set this to false to disable the History. URL Example:/view/printView?workItemType=Incident&workItemId=IR123&showHistory=false
you would change:
window.open('/view/printView?workItemType=Incident&workItemId=' + viewModel.Id, '_blank');
to :
window.open('/view/printView?workItemType=Incident&workItemId=' + viewModel.Id + "&showHistory=false", '_blank');
Then every incident will open with the history turned off. I hope this helps!
In Firefox when pop ups are allowed it will only open one RA but all MA and RB. When popups are blocked it opens only first activity (an MA) and prompts me that 10 more tabs are trying to open. When I allow pop ups ALL of the remaining activities open in their own tabs. It's almost like the pause is somehow important. Any thoughts on why the RA are trying to open in the same tab in IE and Chrome?
Here are the activity types in order.
I hope that makes some sort of sense to you. If not we might need to talk so I can explain it better.
Hi @Justin_Workman, is it possible to get the description field with a better Format? with Line Breakes and so on?
Customer of mine have Trouble to use this function with descriptions created via E-Mail or with more Lines, since there is no linebreak at the Output :/
I've created an alternate version to the one Justin created, at https://community.cireson.com/discussion/5726/single-print-work-items/ . It skips a few items but puts everything on one HTML page for printing.