Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,705
Community Members
 
Community Events
165
Community Groups

JSM comments do not appear as notes in Opsgenie (closed) Alerts

Edited

Hello Community,

I've got an integration that successfully creates an Opsgenie alert when the webhook is invoked based on JQL (project = ITAL  issuetype = alert     priority = highest)  

The integration setup includes Add Note/Comment functionality that works both ways:

  • if I add a note in the Alert, it posts as a comment in the ITAL ticket.
  • comments added in ITAL ticket appear as a note in the Alert

This works great right up until the Alert is closed in Opsgenie. Then the functionality only works from Opsgnie to ITAL.   The ITAL comments cease to appear as notes.  

Is this as designed?  I can't wrap my head around why the integration works in one direction and not the other once the Alert is marked closed.  

The debug log says:

Discarding delayed incomingData, expired because alert does not exist.

Is the alert considered "non-existent" once it closes?  I can still interact with it in Opsgenie. <<scratches head>>.

Screenshot of my "Add Note" config and debug log below: 

CS_Alarm_Add_Note_Config.pngopsgenie-debug-log.png

1 answer

1 accepted

2 votes
Answer accepted

Hi there Rosa!

The functionality you have described is performing as designed. We typically see the error message that is being displayed, Discarding delayed incomingData, expired because alert does not exist, because the JSM ticket you added a comment to does not exist in Opsgenie or because the alert was closed in Opsgenie before the comment was added to the ticket. So, for the case that you have described, since the alert has already been marked closed prior to adding a comment on the JSM ticket, since there is not an open alert with the same alias value as the received integration request, the Add Note action is not processed. 

 

Please let me know if this explanation helps, or if you have any further questions!

 

Best,

Skyler

Hi Skyler, Thank you for your response!  Your explanation makes sense (it was designed that way); however, the why does not.... but I will trust that there are excellent reasons as to the why, so I'll resist the urge inquire.  

Instead I'll ask: Any way to get comments that get added to the JSM ticket after an alert is closed added as a note to that alert?

Hi Rosa, 

 

Happy to help! Unfortunately, at this time there is not a way to get comments that get added to the JSM ticket after an alert is closed automatically added as a note to that closed alert in Opsgenie. The Add Note action that you have set up works for this purpose, but only for an open active alert. This is because when an Add Note action is processed, Opsgenie looks for an open existing alert to add a Note to, and not one that is closed. You can add Notes to alerts manually after it's closed, but not through the integration rules. 

 

I don't have the specific details regarding the why around this type of functionality at this time. Though, this use case certainly sparks curiosity. If I am able to gather more information revolving around this particular use case, I will be happy to cue you in with what I am able to find if that is something that you will be interested in. smile

 

Best,

Skyler

Like Rosa M Fossi likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

274 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you