Home Self-Service Portal - Community

Convert IR to SR - Limit selectable templates

I have installed the Convert IR to SR customisation and it works amazingly (https://community.cireson.com/discussion/2415/convert-ir-to-sr#latest).

However I need to limit the list of templates that can be chosen and was wondering if anyone has done this already.

My organisation has never had a user portal before so users are trained to send emails. A lot of these will need to be converted, but I also have a few SR's with runbooks which requires the information to be in the correct format. I would like to hide those request templates from the convert customisation.


  • Brendan_SmithBrendan_Smith Customer IT Monkey ✭
    Thank Brian for pointing me in the right direction. I hadn't thought of limiting the templates from analysts so I have now done that also. 

    I used a part of the code on https://community.cireson.com/discussion/2443/hiding-templates-from-showing to build the array with some easy to read language for the other super users to understand. It should make it easy if we need to add templates in the future and I also have a very small environment so the performance constraints are not noticeable.

    I incorporated that into the Convert IR to SR as below 

    var arrHideTemplates = [
                    //Service Requests
                    'Default Service Request',
                    'Some Other Service Request Template',

    url: "/api/V3/Template/GetTemplates",
    data: {classId: classid},
    type: "GET",
    success: function (data) {

    for(var i = data.length; i--;) {
    var currentName = data[i].Name;
    if($.inArray(currentName, arrHideTemplates) > -1) {
    data.splice(i, 1);

    var templatedata = JSON.stringify(data);

    Working well so far. Thank you for the suggestion!
Sign In or Register to comment.