Sync Jira comments to Salesforce cases from Slack

BotsProject ManagementCRMMarketing

What it does

When someone runs the Add Jira Comments Command in Slack, this automation retrieves the issue details from Jira and creates a comment on that issue. If a Salesforce case number is present, it also searches Salesforce for the matching case.

Who it's for

Engineering teams who need to update Jira issues and link Salesforce cases from a Slack conversation.

How teams use this

Update Jira and Salesforce from one message

Run the command with a Jira issue key and Salesforce case number in the same Slack message. The automation creates the comment in both systems and replies in the thread so the team sees both updates happened.

Link support cases to engineering work

Invite the bot to a support channel so customer issues in Salesforce can be connected to Jira work. The same command flow applies and only the channel context changes.

Add priority tags to comments

Extend the command to include a priority level so comments in Jira are created with more context. The automation checks for the priority field and adds it to the issue.

How it works

  1. Run the Add Jira Comments Command. Type the Add Jira Comments Command in Slack with the issue key and comment text so the automation knows what to update.
  2. Retrieve issue details from Jira. Search Jira for the issue by key. If the issue is not found, the automation stops and replies in Slack so someone knows the issue does not exist.
  3. Create a comment on the issue. Add the comment to the Jira issue and tag the Slack user who ran the command so the team knows who added it.
  4. Search Salesforce for the case. If a Salesforce case number was included in the command, search Salesforce for that case so the comment can be synced there as well.