We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Make incidents visible to specific group

Rakshanda Kunte
Tera Contributor

Hi All,

 

I want to make incidents visible to only HR group and software group. 

 

How this can be achieved?

 

 

5 REPLIES 5

SidharthReddy
Tera Contributor

Hi Kunte,

Please use the below Script and modify the script as per you requirement.

var getUserDetails = gs.getUser();
    var getGroup = gs.getProperty("Show incidents To Hardware");
    if (getUserDetails.isMemberOf(getGroup)) {
        current.addEncodedQuery("state=2");
    }