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.
Incident Task to quickly attach Incident to a Problem Record
just drop the files in your custom space folder, and include them in your custom.js. i have tested this on both IE11 and Chrome.
Comments
How would you hide this task for a basic user (Non-Analyst)? I have it implemented as is but when a non-analyst opens an incident where they are the affected user the task displays on the right. It does nothing when the user clicks on it but I would rather the user not even see it.
I have added the following below the "if (session.user.Analyst) {AttachToProblemRecord();"
//If the user is not an analyst, hide the task
if(!session.user.Analyst) {$( ".taskmenu li:contains('Attach to Problem Record')" ).hide();}
}
The non-admin user sees the task but when clicked it vanishes. Still I would rather the user not even see it.
I have edited this line
require(["text!/CustomSpace/CustomScriptFiles/RelateIncidentToProblemTask/RelateIncidentToProblemTask.html"], function (htmlTemplate) {
To this
require(["text!/CustomSpace/RelateIncidentToProblemTask.html"], function (htmlTemplate) {
I have then restarted IIS, and also restarted cireson portal