Visual Task Board (VTB) - Specify Private Tasks (PTSK) info on card

gldecurtins
Mega Expert

Hi all

How can I add extra info onto a Private Task (PTSK) card in a Freeform Visual Task Board (VTB)?

find_real_file.png

I expected similar functionality as on Guided VTBs, where I could specify a VTB view on the table.

find_real_file.png

I've tried to resolve it with specifying a VTB view on task, vtb_task and vtb_card table. Without success.

Any other idea?

Cheers

-Luca.

1 ACCEPTED SOLUTION

Mwatkins
ServiceNow Employee
ServiceNow Employee

Ok. Got it. You have to add the fields you want to the first section in the form for the VTB view. Once I did that it worked fine, the model got build with all the fields from the VTB view of the Private Task form.


Screenshot 2017-04-13 20.33.32.png


Screenshot 2017-04-13 20.33.25.png


View solution in original post

5 REPLIES 5

Mwatkins
ServiceNow Employee
ServiceNow Employee

Have you actually filled out the values of any of the fields in the private task? It works for me if I reload the board after having filled in some value for those fields for a card. So in other words:


1. Open a free form board


2. Create PTASK


3. Change some value in the PTASK (assigned_to, etc.)


4. Reload the board



Screenshot 2017-04-13 13.33.13.png


Mwatkins
ServiceNow Employee
ServiceNow Employee

Hm... some fields display but not others. I use the inspector to check out the widget that I am interested in and then call .scope() to get into the Angular objects. For example, angular.element(document.querySelector(".sn-card-component_records")).scope() gets you the first list of record details on a card on your board.



Looking at the angular objects from the front-end I find the following:



The private task (vtb_task) only has a sub-set of the fields in its model.


  1. VtbRecordModel
    1. additional_assignee_list:Object
    2. assigned_to:Object
    3. assigned_to_dependencies:"assignment_group"
    4. assignment_group:Object
    5. can_read:true
    6. description:Object
    7. dirty:undefined
    8. number:Object
    9. short_description:Object
    10. sys_class_name:"vtb_task"
    11. sys_id:"2f6513a613867200b5fc5aef3244b047"
    12. sys_updated_by:Object
    13. sys_updated_on:Object
    14. unsaved:undefined


On the other hand, when I look at the model for a card of an incident, the object has all the fields from the incident default view in the model - even blank ones.


  1. VtbRecordModel
    1. additional_assignee_list:Object
    2. assigned_to:Object
    3. assigned_to_dependencies:"assignment_group"
    4. assignment_group:Object
    5. business_service:Object
    6. caller_id:Object
    7. can_read:true
    8. category:Object
    9. cmdb_ci:Object
    10. contact_type:Object
    11. description:Object
    12. dirty:undefined
    13. hold_reason:Object
    14. impact:Object
    15. number:Object
    16. priority:Object
    17. short_description:Object
    18. state:Object
    19. subcategory:Object
    20. sys_class_name:"incident"
    21. sys_id:"d71f7935c0a8016700802b64c67c11c6"
    22. sys_updated_by:Object
    23. sys_updated_on:Object
    24. unsaved:undefined
    25. urgency:Object
    26. __proto__:Object

Mwatkins
ServiceNow Employee
ServiceNow Employee

Ok. Got it. You have to add the fields you want to the first section in the form for the VTB view. Once I did that it worked fine, the model got build with all the fields from the VTB view of the Private Task form.


Screenshot 2017-04-13 20.33.32.png


Screenshot 2017-04-13 20.33.25.png


Eric M
Giga Expert

anyway to change this part of the VTB so i don't have to go into the PTSK to change a field? 

 

find_real_file.png