Link a ticket to a Slack channel or to a person in Slack
Link the ticket to a Slack channel (by channelId or channelName) or to the direct messages of one person (by Slack member slackUserId or email). Primo posts a first message naming the ticket there, which opens the thread: its replies become public comments on the ticket. A ticket holds one link: linking again replaces it, and the previous thread gets a last message. Refused when Slack links are not open for the company (403 SlackTicketLinksDisabledError), no Slack workspace is connected (409 SlackNotConnectedError), the ticket was raised from Slack and keeps its thread (409 SlackSourcedTicketLinkLockedError), the channel is used to raise tickets (409 SlackIntakeChannelLinkRefusedError), or Primo cannot post to that channel or person (422 SlackLinkTargetUnavailableError: unknown, archived, not joined by the Primo app, or no Slack member with that email). Answers the link with its status; getTicket returns it too. To remove it, use unlinkTicketFromSlack.