While using client.interface.trigger(“setValue”, {id: “department”, value: 1}) Now i can able to change the values based on conditions but for urgency and impact facing an issue. Values are getting but its not setting to the field.
Example :if status is open then urgency should change to high in new ticket page.—not working
if i give condition like urgency is medium and priority should change to medium this is working
In service documentation for interfaces i am not able to find any syntax about trigger urgency and impact.
Indeed, it seems that for urgency and impact it is not possible to set using interface set value method.
Perhaps you could accomplish what you want setting the values using API call: Update a Ticket.
You could call it when: ticket.propertiesUpdated or Serverless OnTicketUpdate.