Force analysts to use the Task 'Assign to analyst by group'
Many WI are passed from different teams and sometimes the support group is not changed which means an analyst who isn't scoped to the relevant support group finds they do not have access to work on the WI.
Thanks!
Best Answers
-
Geoff_Ross Cireson Consultant O.G.
{ DataType: "Enum", PropertyDisplayName: "SupportGroup", PropertyName: "TierQueue", EnumId: 'c3264527-a501-029f-6872-31300080b3bf', Disabled: true },{ DataType: "UserPicker", PropertyDisplayName: "AssignedTo", PropertyName: "AssignedWorkItem", FilterByAnalyst: false, Disabled: true },
5 -
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭+1 to what Geoff said. To further avoid this "assigned analyst is not in the assigned support group" case, I also like to pair Geoff's code above with some code to clear the 'Assigned To' field if it is not specified via the task.
Here is some /CustomSpace/custom.js code that will accomplish that (SR code here, but just change the first line for other types of work items):app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) {formObj.boundChange("SupportGroup",function (formObj, viewModel) {console.log("Support Group has changed");var vm = pageForm.viewModel;var newSupportGroupId = vm.SupportGroup.Id;if(newSupportGroupId == ""){if(vm.AssignedWorkItem != null && vm.AssignedWorkItem.DisplayName != null){console.log("Clearing assigned to");vm.AssignedWorkItem.BaseId = null;vm.AssignedWorkItem.DisplayName = null;vm.AssignedWorkItem.set("AssignedWorkItem", { BaseId: '', DisplayName: '' });}}});});7 -
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭Make sure it is within the app.custom.formTasks.add() section, and within a formObj.boundReady() as so:app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {formObj.boundReady(function(){$('[data-bind="click: assignToMe"]').hide();});});1
Answers
Set these two fields to read only by adding disabled: true in the properties for the field defined in the Form's JS file. Eg, to make this change for IRs, edit Incident.js in custom space.
Geoff
Here is some /CustomSpace/custom.js code that will accomplish that (SR code here, but just change the first line for other types of work items):
Can we amend the function of 'Assign to Me' to not only populate the Assigned To but also add their support group in?
Thanks
Tom
Otherwise, it is not possible to alter the out-of-box task; however, it is possible to create a custom task that includes this functionality.
I would like to come back to the request / query by Tom Hyde " Can we amend the function of 'Assign to Me' to not only populate the Assigned To but also add their support group in?" As mentioned the out-of-box cannot be changed but with code a new custom task could be created. Has anyone created such a custom task?
Thanks
Eugene