Remove private flag from Incidents and Service request
I was looking at tempaltes and have tried to remove the flag. After saving and reopening the flag is back.
Any idea why that happens? Is there a central location where the flag can be removed?
Best Answers
-
Peter_Settle Customer Advanced IT Monkey ✭✭✭
By default the Is Private flag is turned off. However the custom.css file can override this.
5 -
Konstantin_Slavin-Bo Customer Ninja IT Monkey ✭✭✭✭Just to be completely sure: When you open a New Incident / SR (not template) in the SCSM console, the private is not set by default, but when you open a New Incident / SR on the Portal, the Private flag is set by default. Is that correct?
If it is correct, then you need to check your CustomSpace directory (typicallyC:\inetpub\CiresonPortal\CustomSpace
), and look for the files namescustom.js
andcustom.css
- does any of these contain anything? If they do, could you upload them here for us to have a look?
If the flag is only set when you open a IR / SR template, then you have nothing to worry about. As @Brian_Wiest said, the flag here is only checked, because SCSM cannot handle it beingnull
(i.e. neither True nor False), and just shows it as checked; so when you actually create a new IR / SR, the flag will not be checked as default.
5 -
Brian_Wiest Customer Super IT Monkey ✭✭✭✭✭Remove this line from your custom.js and retest
$("#actionLogisPrivate").trigger("click")
5
Answers
By default the Is Private flag is turned off. However the custom.css file can override this.
Had a look yesterday. Wasnt able to find the correct mp.
Havent done any mp editing myself so far. That doenst help it
Suleyman_Ozden I think what Konstantin is asking is:
If you open the template in SCSM is the Flag set i.e. Ticked ?
If it is not ticked in SCSM the fault will be with the CSS file in Cireson, where it will have been set to be Ticked.
As mentioned in my opening question, it is checked in the templates.
Does it make sense that this is places in a custom style sheet? I couldnt find that in any .css
Just checked all my templates in SCSM and they have the Private box ticked also (in the library).
However when I use a template in Cireson or SCSM the Private box is not ticked, therefore css is not affecting this box.
If it was forced on in Cireson the custom.css would mention Action Log.
HTH
If it is correct, then you need to check your CustomSpace directory (typically
C:\inetpub\CiresonPortal\CustomSpace
), and look for the files namescustom.js
andcustom.css
- does any of these contain anything? If they do, could you upload them here for us to have a look?If the flag is only set when you open a IR / SR template, then you have nothing to worry about. As @Brian_Wiest said, the flag here is only checked, because SCSM cannot handle it being
null
(i.e. neither True nor False), and just shows it as checked; so when you actually create a new IR / SR, the flag will not be checked as default.Thanks for your replies. I created an IR in console and no flag was set. Opened the same IR in Cireson and there it was now set!
Created a new IR in Cireson and flag was set. So seems like Cireson is doing something, but I cant find where.
There is nothing on private in custom.css. Content in custom.js has 2 functions. On for konverting Incidents to Service Requests and the other, for adding sent mails to actiong log by default, is pasted below:
/*START Send Mails Add to ActionLog set pr defualt */
app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) {
formObj.boundReady(function () {
$("#actionLogisPrivate").trigger("click")
$(".link[data-bind*=sendEmail]").on("click", function () {
$("#IsAddToLog").trigger("click").closest("div");
});
});
});
app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {
formObj.boundReady(function () {
$("#actionLogisPrivate").trigger("click")
$(".link[data-bind*=sendEmail]").on("click", function () {
$("#IsAddToLog").trigger("click").closest("div");
$("#ChangeStatusToPending").closest("div");
});
});
});
/*End Send Mails Add to ActionLog set pr defualt */
$("#actionLogisPrivate").trigger("click")