- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 11:37 AM
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.
Copy comments from ServiceNow to Jira:
1. Business rule to trigger a flow designer flow
2. Triggered flow
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 11:58 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2021 02:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2021 02:21 PM
Hi Shrutika,
Try updating the comments section to use Input-Comment-Author-DisplayName rather than Input-Author-DisplayName.
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 06:04 AM
Now Im just try to display comments i.e input->comment->body
Still it is blank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 12:41 AM - edited 10-23-2023 02:12 AM
HI @MB12
How you are called flow from BR ,In advance tab ,I have written below However getting error
(function executeRule(current, previous /*null when async*/) {
var inputs = {};
inputs['current'] = current; // GlideRecord of table:
inputs['table_name'] = 'incident';
sn_fd.FlowAPI.executeFlow('global.to_update_comment_in_jira', inputs);
})(current, previous);
Error: Cannot read property "comments" from null,Detail: Cannot read property "comments" from null