Philip Colmer
I'm migrating parts of the Jira integration to use a Responses trigger because I need to add additional steps when the agent responds, and the Jira integration doesn't give me the outputs I need.
In the Jira integration, if the agent adds a comment when they respond, the step does this:
var msg = util.buildResponseMessage(callback);
var commentResponse = jiraClient.addComment(issue, msg);
However, when I look at the Acknowledge settings of the Responses trigger, I cannot find any object that corresponds to any comment submitted by the responder. Indeed, if I look at the Activity pane after responding with a comment, I cannot see my comment in any of the values.
How do I retrieve that comment so that I can do something with it?
Thanks.
0
Comments
Please sign in to leave a comment.
Hi Philip,
Great question! I think what you need to look at is the Event Comments trigger as that is the one that fires off if a user provides a comment for the event.
https://help.xmatters.com/ondemand/xmodwelcome/flowdesigner/flow-triggers.htm#EventComment
Short description:
The Event Comments trigger initiates a flow when a user adds a comment from the mobile app, xMatters Inbox, email, Tracking Report, or xMatters REST API. Outputs include the user that made the comment and the content of their comment.
Let me know if that may solve part of your requirement.
Happy Wednesday!
Another option would be to retrieve the event ID and look at the annotations via the API.
https://help.xmatters.com/xmapi/index.html#get-event-annotations
That should show you who placed the comment, when and what their comment was.
Cheers!
Thanks Philip,
It's odd that you don't have the other triggers showing in your flow. I may have to go take a look at the Jira integration being used and see if there's a reason that one is not available. Otherwise do see if you can just use the API to call up the comment and get the data needed to push to Jira if that was your intent. I'll update if I find anything re: the comments trigger.
Cheers!
Hi Francois
I've managed to use the API to retrieve the comment. Looking at the data I'm getting back, the comments appear to be in newest order first, so I grab the first comment where the author ID matches the ID of the person ack'ing the event. I'm not 100% comfortable with that but it appears to be working.
Thanks.
Hi Philip,
Just to close the loop on this it seems that depending on the type of form you use it will dictate what kind of response triggers you have access to in Flow Designer. Make sure you are using a Message Form (not a flow trigger form) if you want to have access to the Comments trigger aforementioned.
Based on this, the solution you are working on should be the way to go with the flow trigger form.
Feel free to play around with both ideas, do reach out if you have additional questions on this.
Cheers!
Hi Philip,
Can you go and look at the Integration Builder section of the converted workflow and see if there are any outbound integrations like Engage - Outbound Comments or Notify Assignee - Outbound Comments? If they are configured using Integration Builder then they won't appear as options in Flow Designer. In other words - maybe they are already in the layout and you didn't notice?
If not then send us an image of your flow canvas and what you do see in the Integration Builder section as a comparison.
Happy Friday!
Thanks for confirming Philip! You are likely right, you have to delete an outbound integration like that in order to be able to bring it in via Flow Designer, otherwise it remains absent in the Triggers section as it thinks there already is one on the canvas. This is by design.
Feel free to update this thread if you need anything else to help you out. I would encourage you to compare the triggers to see how they work for you.
Happy Monday!