Cireson Partners, Customers and Community members share your customizations and examples here to help benefit the community as a whole to earn Kudos and badges.
DISCLAIMER
All files and projects located here are provided and come "as-is" and without any warranty or support. Use at your own risk. Your use of Community Uploads is subject to our Terms of Use.
Cireson does not and will not support or maintain these enhancements, extensions, and scripts.
For Team Cireson uploads click here.
Comments
In the meanwhile which version of the portal are you using and are you using any other custom stuff? For example the custom apply I uploaded?
For anyone interested the current inhouse revision of this custom actionlog is able to filter and hide service account entries OR rename the service account for one service account. Is there a need to utilize an array to filter multiple ones?
Will try to fix the dual entry email problem and perhaps multiple service accounts before upload.
Yes we're using a lot of custom stuff. We've had implemented your custom apply feature, but we recently disabled it, because it autosaved also after "Assign to Analyst by Group" and when other stuff was changed. Our analysts change a lot of fields together: Assigning to Analyst by Group, then Area, Priority etc... and at the end, they want to save (apply) the Request. That's why we disabled it.
Thanks in advance,
Raffael
Thank you @Brian_Wiest for the additions as well.
While the service accounts entries are typically not the targeted line items analysts review, I still believe it is good to have there as it shows the workflow running request. What I have done was more customization of the scripts to make the default font smaller. The set a larger font and darker color and the comments lines along with marking private a different color. this leaves the workflow line items in the action log while making the comment entries stand out. My guess this is a personal preference. My "challenge" is 400 analysts all wanting different experiences.
I have tested this adjustment in 7.3.2016. So far, no false positives or misses.
@Tom_Hendricks, we don't load the custom auto apply script for analysts and end users interactions compared are very basic. That's probably why I didn't see this on our environment. Easily addressed as you've done already. Will post an update in the auto apply thread!
For my custom work I see a problem and a solution, possible not the best solution as things could always get better, especially the visual things as I never done fronted until recently or stuff I cannot/didn't think of to test. I really want to encourage all of us who extend and improve all custom stuff uploaded here from me or anyone else to contribute your work back to the community. Demands are different in different organizations and hopefully the users here can find some lines of code that works magic their specific environment (@Brian_Wiest, 400 analysts, forget about magic )
Well we only have two people tasked to SCSM, me on the front and my teammate building a warehouse search portal. Alone with expanding our 40 support desks with another 100, it can be a nightmare tracing permissions or workflows when a specific analyst reports an error.
I agree the outcome of this community is great!
How can I get the Custom Expanded Action Log to display line breaks?
At the end of custom_ActionLog.js, I've added a line to an existing rule.
In the existing rule on line 127: addRule(".chat li .chat-body p", {
Add a comma after the color line and add another line with "white-space": "pre-wrap"
https://community.cireson.com/discussion/2152/custom-js-scripts-dont-run-on-closed-work-items
And this related feature request:
https://community.cireson.com/discussion/803/keep-tasks-pane-available-for-closed-work-items#latest
Leigh,
Thanks for the update.
I am new to both the Cireson Portal and JS, would the solution you propose for the "Task Menu" work for the Custom JS "Action Log"? Or is it an absolue No when running Custom.JS on closed items?
Ralph
In an attempt to clear up some of my jargon:
- Any code you write in the /CustomSpace/custom.js file always runs each time a page is opened in the portal
- There is a KB article that explains the supported/recommended way of adding custom tasks or events that occur when the form loads or when a field's value changes: https://support.cireson.com/KnowledgeBase/View/52#/
- However, nothing that starts with app.custom (like the KB article shows) will run when the ticket form you are opening has a status of Closed. This is apparently by design, but many of us have requirements for code to run on the closed forms.
- There are other ways to make your code run at the intended time, using more conventional JavaScript, but it is not as simple as the way that is recommended in the KB article above.
I recommend taking a look at some of the other community content to see how others have made this work. There are far more talented people than me in this forum who can simplify this even further perhaps, but I wanted to make an attempt to clarify things since you said that you are new to JS. I hope this helps a little.https://gist.github.com/hjst/1326755
I'll be trying it tonight to validate as well
var timeFormat = 'MM-DD-YYYY hh:mm A';
var timeFormat = 'MM-DD-YYYY hh:mm A';
Doesn't work for me.
We get now for ex 16:31 PM
Have you attempt to clear your local browser cache?
- An end user is a reviewer, and they follow the link provided in an email to approve the RA.
- The portal partially loads and the donut of death spins indefinitely.
If we add an action log entry, the page renders properly.With the F12 menu up, we see:
TypeError: comments is undefined in custom_ActionLog.js:72
Do you have any suggestions?
When I pulled up the code for this customization I realized that I've added a feature to hide service account records which I haven't released. Will post an update in time..
Thanks for the fix Martin, it's working for all users now. We also had to add the conditional in the CustomActionLogHandler function, around actionLog.bind as it threw an error after making the change you recommended. i.e:
Thanks for this solution its works so much better than the out of the box action log,
I've noticed you've used the HTML "Editor" as the input box that allows rich input such as pictures,paragraphs, links,grids etc. but as this is saved into the action log as plain text is lost.
would it be possible to have a version of the solution where the action log is saved into SCSM as raw HTML (would be nonsence in the console) but would publish out to the portal with all the features in tact
Thanks for this great work.
Do you have any idea when you would have time to upload the customization for hiding the service account records?
Thanks in advance,
Giovanni