Want to add assignment groups in Created Visual task board

Nikita9
Mega Expert

Hi All,

I want to add Assignment group in my visual task board but i don't know how to do that.

Pls help.

6 REPLIES 6

asifnoor
Kilo Patron

Hi Nikita,

Do you want to add assignment group field in the cards of the VTB? If yes then follow this link.

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/use/visual-task-boards/task/config...

Mark the comment as a correct answer and also helpful if this helps to solve the problem.

Hi Asif,

I don't want to add it in the card. I want it on the board. Just like users i can add, in the same way i want to add assignment groups.

 

Regards,

Nikita

Ah Okay. You cannot add a group directly here.. Not sure if you can use flow as flow also require some action for it to trigger.

Here is the script which you can use to run it on fix script

var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group","0c4e7b573b331300ad3cc9bb34efc461"); //put yoru assignment group sys_id
gr.query();
while(gr.next()) {
  var board = new GlideRecord("vtb_board_member");
  board.initialize();
  board.board="e807dd211b13981012c0dc6cdc4bcbb9"; //mention your VTB sys_id to which you want to add users
  board.user=gr.user.toString();
  board.insert();
}

Mark the comment as a correct answer and also helpful if this helps to solve the problem.

Kieran Anson
Kilo Patron

Hi,

VTB's only support adding users rather than group members for board visibility. Boards to User membership is stored in the vtb_board_member table.

What you can do is create a flow to loop through a group membership and add the user(s). There is an Add VTB Member action that comes with flow designer.