Help with this question

Salomao_
Tera Contributor

I'm having extreme difficulty with a question. I impersonated a user. I opened a Case and requested a REQ within the CASE. The REQ was tied to the Case, but the RITM was not tied to the REQ. How can I resolve this? I'm really lost in this situation and I don't know what else to do. 

5 REPLIES 5

SanjivMeher
Kilo Patron
Kilo Patron

Is an RITM created from the REQ. Usually when you create a request, a corresponding RITM is created.

If it didn't, there could be some BR restricting it. If it created, but didnt link to RITM, update the Request field with the RITM.

Is this something someone asked you as a question or it actually happend?


Please mark this response as correct or helpful if it assisted you with your question.

It's really betting. I ma de this BR. Could this be? 

 
(function executeRule(current, previous /*null when async*/ ) {
    //Preciso que essas regras só funcionem no "olhar" para a tabela;


    var user = gs.getUser();
    var checkUserItil = user.hasRole('itil');
    var checkUserAdmin = user.hasRole('admin');
    var checkUserSncExternal = user.hasRole('snc_external');

    var query = '';

    if (checkUserAdmin) {

        // a query aqui esta vazia pois o usuario vai passar pela verficação e caso ele for admin nao terá filtros e poderá ver tudo
        query = '';

    } else if (checkUserItil){
        var userGroups = user.getMyGroups();
        // caso o usuario tenha a role "itil" ele poderá consultar os registros relacionados a esses grupos
        query = 'assignment_groupIN' + userGroups;
       

    } else if (checkUserSncExternal) {
        // caso o usuario tenha nao se encaixe em nenhuma das condições acima ele so poderá consultar os registros solicitados por ele mesmo.
        query = 'requested_for=' + gs.getUserID();
    }

    // Apply the query to the current list view
    current.addEncodedQuery(query);


})(current, previous);

 

If this is a query BR on RITM table, it may be hiding the RITM when you impersonate.

Does it show the RITM, when you deactivate this BR?


Please mark this response as correct or helpful if it assisted you with your question.

No, if i deactivate this BR, the RITM's will not appear for the user