Toggle menu

caseTaskCreate

Creates a task in a case. The parameters supplied should conform to the task's settings.

The user details supplied when creating the task should be those of the assigned case manager, or the system user. The system user is defined in the Setup and Naming section of the case configuration and by convention is called CMSYSTEMUSER.

Namespace

goss.CaseManagement.v1.api.caseTask.caseTaskCreate

Worker

serverlibrary

Parameters

NameTypeDescription
caseBusinessKeyStringRequired. The business key of the the case to create the task for
caseTaskToCreateObjectRequired. The details of the case task to create
caseTaskToCreate.caseTypeTaskIdStringRequired. The ID of the task to create. This can be found in the "Setup" section of the task configuration
caseTaskToCreate.groupIdStringRequired. The name of the group (as set in iCM) the case task will be assigned to
caseTaskToCreate.userIdStringOptional. The username of the user (as set in iCM) that the task will be assigned to. The user must be a member of the group defined above
caseTaskToCreate.userNameStringOptional. A name for the user to display in the case history notes
caseTaskToCreate.permissionsObjectOptional. These settings control what the task user will be able to see from the parent case
caseTaskToCreate.permissions.canViewAttachmentsObjectOptional. The settings here must conform to the task configuration (ie if the task configuration doesn't allow attachments, trying to pass attachments will fail)
caseTaskToCreate.permissions.canViewAttachmentsallAttachmentsBooleanOptional. If true the task user will be able to access all case attachments
caseTaskToCreate.permissions.canViewAttachments.allowedAttachmentsArrayOptional. An array of the filestore IDs of the attachments to pass to the task
caseTaskToCreate.permissions.canViewContactDetailsBooleanOptional. If true the task user will be able to view the contact details of the user who raised the case
caseTaskToCreate.permissions.canViewCaseBooleanOptional. If true the task user will be able to view the case details
caseTaskToCreate.targetOverrideObjectOptional. Optional overrides for target and reminder calculation. If not supplied the SLAs set in the task configuration will be used
caseTaskToCreate.targetOverride.disableObjectOptional. Settings to disable timer and reminder calculation. If none of the properties are set this will be ignored.
caseTaskToCreate.targetOverride.disable.targetBooleanOptional. If true both the SLA and reminder will be disabled
caseTaskToCreate.targetOverride.disable.reminderBooleanOptional. If true the reminder will be disabled
caseTaskToCreate.targetOverride.actualDateObjectOptional. Set dates for the target SLA and reminder. If only target is supplied reminders will not be set.
caseTaskToCreate.targetOverride.actualDate.targetString <date-time>Optional. The task SLA in the format "2026-03-17T09:23:08Z"
caseTaskToCreate.targetOverride.actualDate.reminderString <date-time>Optional. The date the reminder will be sent in the format "2026-03-17T09:23:08Z"
caseTaskToCreate.targetOverride.targetDateObjectOptional. The supplied dates will have the working scheme for the case's rules applied to ensure a valid working day. For example, if the supplied date is a Sunday, the SLA will be advanced to the next valid working day
caseTaskToCreate.targetOverride.targetDate.targetString <date-time>Optional. The task SLA in the format "2026-03-17T09:23:08Z"
caseTaskToCreate.targetOverride.targetDate.reminderString <date-time>Optional. The date the reminder will be sent in the format "2026-03-17T09:23:08Z"
userObjectRequired. Details of the user creating the task. This must be the current case manager, or the system user if the case is unclaimed
user.displayNameStringOptional. A name to use in the case history notes
user.siteUserNameStringRequired. The username as set in iCM
proxyUserObjectOptional. Details of the user being proxied (eg this could be the system user, while the user is the actual user)
proxyUser.displayNameStringOptional. A name to use in the case history notes
proxyUser.siteUserNameStringRequired. The username as set in iCM
trackProgressBooleanOptional. If true the task will be created asynchronously and updates will be provided via a tracking session.

Example

See Case Management API for the full example call structure.

{
    "caseBusinessKey": "1234-1234-1234-1234",
    "caseTaskToCreate": {
        "caseTypeTaskId": "investigate22",
        "groupId": "CM-TASKUSERS",
        "userId": "TIMG",
        "userName": "Tim",
        "permissions": {
            "canViewAttachments": {
                "allowedAttachments": [
                    "Abc"
                ],
                "allAttachments": false
            },
            "canViewContactDetails": false,
            "canViewCase": false
        },
        "targetOverride": {
            "disable": {
                "reminder": false,
                "target": false
            },
            "targetDate": {
                "reminder": "2026-03-17T09:28:02Z",
                "target": "2026-03-17T09:28:02Z"
            }
        }
    },
    "user": {
        "displayName": "Adam",
        "siteUserName": "ADAM"
    },
    "trackProgress": false
}

Responses

Success

The task was created successfully.

{
    "id": 156,
    "result": {
        "success": true,
        "complete": true,
        "startTime": "2026-03-17T11:51:35.887Z",
        "endTime": "2026-03-17T11:51:38.495Z",
        "duration": 2608,
        "createdTasks": [{
            "allAttachments": false,
            "cancellable": false,
            "details": "Investigate\n\nName: Tim Gulliver-Haynes\nEmail: [email protected]\nPhone: 01752123456\nAddress: address",
            "formEnquiry": "CASEMANAGEMENTINVESTIGATEENQUIRYVIEWV1EN",
            "groupID": "CM-ALLOTMENTENQUIRIES",
            "groupName": "CM-ALLOTMENTENQUIRIES",
            "processName": "cminvestigatev1",
            "raised": "2026-03-17T11:51:36.266Z",
            "reminder": "",
            "showAttachments": "",
            "showReadOnly": true,
            "status": "New",
            "statusDesc": "New",
            "started": "2026-03-17T11:51:36.266Z",
            "summary": "Investigate",
            "target": "",
            "taskID": 8,
            "taskType": "investigate65",
            "taskName": "Investigate",
            "userID": "TIMG",
            "userName": "Tim",
            "businessKey": "0630-0387-2840-1148"
        }]
    },
    "jsonrpc": "2.0"
}

Error

The message property will contain details of the error.

{
    "jsonrpc": "2.0",
    "id": 19,
    "result": {
        "success": false,
        "complete": true,
        "startTime": "2026-03-17T09:56:35.739Z",
        "endTime": "2026-03-17T09:56:36.767Z",
        "duration": 1028,
        "errors": [{
            "message": "Case task Investigate does not allow attachments to be passed to it, but permissions.canViewAttachments is set",
            "data": {}
        }]
    }
}

Last modified on 28 April 2026