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

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.

Thanks Pranesh, 

Using gs.isInteractive() resolved the issue I had with copying unnecessary comments to the Jira case. I'm halfway there now. 

Would you have any ideas on how I can change the webhook flow so that when a comment is copied from ServiceNow to Jira, the flow doesn't attempt to add this comment back to the RITM?  

Sorry cant help you in webhook side. You can search stackoverflow for this.

Maybe this will help 

https://softwareengineering.stackexchange.com/questions/220022/what-is-the-most-elegant-way-to-handl...

Is this the only line of code that needs to be in the BR advanced tab?