Adding items to checklists using SIL

You may need to extend an existing checklist with additional items.


Steps

  1. Retrieve the current list of checklist items converted from JSON to the oChecklistItem structure.

    oChecklistItem[] items = fromJson(DoD);
  2. Create an item and set the values you require.

    oChecklistItem newItem; newItem.name = "Acceptance criteria for each issue met";
  3. Add the new item to the current values.

    items += newItem;
  4. Update the custom field by passing it the same collection that was initially extracted from the custom field converted to JSON.


Example

Here is a full example that can be used to add two items to an existing checklist:


SERVER DOCUMENTATION (On Cloud? Go here.)
Have questions? Contact our Service Desk for help anytime.