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.
Extend incident class. Security
Hi.
We have expanded the incident class with 2 fields:contract(list), departure (yes\no).
How to configure the visibility of these fields for AD groups of users (engineers):
1. Do not see new fields
2. They only see the contract number, and the field is required to be filled in.
Comments
You could create custom forms inside the Incident.js file in your CustomSpace folder.
Inside the portal you can then assign this form to AD groups. Inside the file you can then decide which field is shown and if it is either required or not.
Don't forget to assign the correct Type Projection, else you won't see certain Incident Relationships.
Do you know how to do that?
Hi.
thanks for the reply. I do not know how to make different forms for different users, and how to assign them to AD groups. I didn't find it in the knowledge base either. Can you share your experience?
Hello @Sergey_Astashki ,
sure :)
First of all, copy the the Incident.js from inetpub\CiresonPortal\Scripts\forms\templates to your inetpub\CiresonPortal\CustomSpace folder. You can just copy it there or in the WorkItem folder inside the CustomSpace. We did that so we have the CUstomSPace folder itself clean and it is easier to find what you're looking for.
VERY IMPORTANT: DO NOT change or delete the files from the forms\templates folder. If you have any errors inside your custom form, and you don't find the cause, you can still just override it with the OOTB Template and it's working again ;-)
Open the Incident.js file with a text editor. I recommend Notepad++, as the standard editors from Microsoft are garbage for that.
On top of the file you see the following line:
This marks the standard Incident View for Analysts.
If you scroll down to line 179 you see the following:
This marks the standard View for NON-Analysts.
What you have to do now, is to create a new section, at the same hirarchy as the Default and DefaultEndUser.
What I do in such case, I just copy the Default Section completely and paste it at the end of the file.
Be careful to paste it exactly where it belongs, which means AFTER the second last }. Do not forget to add an , after this }
Now rename the section you just pasted to anything you like, I recommend something short like "engineers". Inside this section you can then edit the fields as you wish. Here is the KB Article for that: https://kb.cireson.com/article/how-to-create-custom-forms-for-cireson-portal/51
You can of course also edit the fields inside the Default and DefaultEnduSer section to your needs.
After you have finished your engineers section to your needs, open the portal and go to Admin Settings--> Group Seetings. You will find the following in top:
This is the part, where you assign this engineers Incident form to an AD group.
If the corresponding engineer group has already been "touched" by the cachebuilder, members if the engineers AD group should immediately see the new view when they open an Incident.
I hope this helped :)