Stuck in loop copying comments between Jira and ServiceNow using Jira Spoke and flow designer.

MB12
Kilo Sage

Hello,

I'm trying to copy comments between Jira and ServiceNow using Jira spoke and flow designer, but have found myself stuck in a loop between the two. When a comment is added to an RITM, it's added to Jira. However, once that comment is added to Jira, it's copied back over to ServiceNow. Can anyone help in modifying this to work properly? Below is what I'm using:

 

Copy comments from Jira to ServiceNow:

1. I'm using a copy of the included Jira webhook subflow with the following actions added.

find_real_file.png

 

Copy comments from ServiceNow to Jira:

1. Business rule to trigger a flow designer flow

find_real_file.png

2. Triggered flow

find_real_file.png

1 ACCEPTED SOLUTION

Pranesh072
Mega Sage
Mega Sage

Use gs.isInteractive() in your BR conditions

The isInteractive() method checks if the current session is interactive. An example of an interactive session is when a user logs in using the log-in screen.

View solution in original post

13 REPLIES 13

MB12
Kilo Sage

Just wanted to follow up here on how I fixed the Jira portion in case anyone else runs into this. I setup a condition in my flow to prevent adding comments to Jira when they're created by the id of the account used to generate the API token.

dhazlettjr1
Tera Contributor

Can you show what you put under the advanced tab in your Business Rule??

Hello,

Could you describe how you setup a condition in flow to prevent adding comments to Jira?

May a screenshot will be a good help!

Thank you.

svani
Tera Contributor

Hi @MB12 ,

Could you please provide any Screenshot for it even i am facing same issue once the comment updated from SNOW-JIRA ,same comment updating from JIRA-SNOW so i need to avoid this anything will be helpful.

 

Thanks in adavnce.

lando321
Tera Contributor

Hi @MB12 

 

Which flow did you add the condition to? Was it the flow that sends the comments to jira from servicenow?