Agile Development - Story Table

SandeshD
Tera Contributor

Hi Team , 

 

I have 3 groups created for the Agile Development , Grp1 , Grp2 , Grp3 , I want to show stories assigned to their group only in the list view.

 

1 ACCEPTED SOLUTION

@SandeshD 

then what script did you start with? something like this please enhance

Example: If logged in user belongs to Grp2 and Grp3 then that user will see stories where those 2 groups are there.

BR condition: !gs.hasRole('admin') && gs.getSession().isInteractive()

Script:

(function executeRule(current, previous /*null when async*/) {

	// Add your code here
	var groups = new global.ArrayUtil().convertArray(gs.getUser().getMyGroups());
	current.addQuery('assignment_group', 'IN', groups.toString());

})(current, previous);

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@SandeshD 

you can use query business rule on your story table

Remember you will have to ensure table.None READ ACL is also updated with similar conditions

what did you start with?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Query Business Rule , I have started with , we have a type called as "Agile" for the Group table.

@SandeshD 

so only members of that group type should see stories?

if logged in user is not member of any group of that group type then no records to be shown?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Admin can see all Stories , Grp1 should see stories assigned to the, , Grp2 assigned to them and same for Grp3