Skip to main content

We have a process where adding a comment in a Slack thread will posts that comment to the corresponding Jira ticket, and vice versa—posting a comment in Jira also adds it to the same Slack thread. Currently, the Zap is functioning correctly for bidirectional sync.
However, we are facing an issue with a loop between both Zaps, resulting in excessive posting of comments in both Jira and Slack. This has led to nearly 500 comments being posted to a single ticket.Can anyone assist in resolving this Zap loop?
Thank you in advance!

 

 

 

 

 

 

 

 

 

 

Hi ​@Shikha Verma 

Zaps are not meant for bi-directional data syncs as those can create infinite loops as indicated in this article:

https://zapier.com/help/create/basics/does-zapier-support-two-way-syncing

 

You would need to apply some sort of filtering logic to stop the infinite loop.

Zap action: Filter

This may involve including a data point to indicate if the comment came from the other app.

e.g. If coming from Slack to Jira, then include #slack

e.g. If coming from Jira to Slack, then include #jira


Hi ​@Troy Tessalone 

Thanks again for providing the information.
Could you please elaborate further? I'm having trouble understanding what specific data we need to fill in this section. Your clarification would be greatly appreciated. Thank you!

 

 


@Shikha Verma 

If a message is posted to Slack that includes #jira, then that means the other Zap sent the Slack message, so you can add a Filter to check if message does not contain #jira, which would mean it was posted directly to Slack, and thus should be sent to Jira and include #slack.

And vice versa for Jira to Slack.


Hi ​@Troy Tessalone Any help on this!

 


Thanks ​@Troy Tessalone for getting back to me!
One quick question if i am getting you correctly, that every comment add to the jira ticket and slack we need to ask user to inclue #jira and #slack after every message?


@Shikha Verma 

No.

You should configure the Zap steps to:

  • include #jira if coming from Jira to Slack
    • that way you know the comment was synced from another app
    • vs an organic comment sent by a user
  • include #slack if coming from Slack to Jira
    • that way you know the comment was synced from another app
    • vs an organic comment sent by a user

 

EXAMPLES

In Slack, say there are 2 messages...

  • Message 1: includes #jira, that means the comment was synced from Jira via a Zap
    • in other words, the comment was NOT added directly by a user in Slack
    • This comment should NOT be synced to Jira
      • In the Zap, the Filter as step 2 would check for this
        • Condition: Message does not contain #jira
  • Message 2: does NOT include #jira, that means the comment was added directly by a user in Slack
    • This comment should then be synced to Jira
      • When synced to Jira, the comment should include #slack

Thanks ​@Troy Tessalone for the detailed explanation.
I will try and get back to you if I have any doubts. 
Thanks once agin!


Reply