Add different notes, in dependency of the subject, in the same Integration
Asked by Alain Rohner:

Hello Community

We have Problems to \<Add Note\> to an alert via \<Intergrations\>.

We create an Integration for all P1-Alerts. For all Alerts, the same note should be added - that works fine!

![og_integration.png](https://community.atlassian.com/t5/image/serverpage/image-id/206775iB6DDA7182838CAB3/image-size/large?v=v2&px=999 "og_integration.png")

Some of the alerts, should have a special note, in dependency, if the subject of the alert contains any word. We created this notes via \<Add Notes\>:

![og_add note.png](https://community.atlassian.com/t5/image/serverpage/image-id/206776i650DCFA1C61B20DC/image-size/large?v=v2&px=999 "og_add note.png")

But when we created this notes with condition and a new alert matches with the integration, then is is no one note in the alert visible: ![og_alert.png](https://community.atlassian.com/t5/image/serverpage/image-id/206780i9BA62758A1A5FDE7/image-size/large?v=v2&px=999 "og_alert.png")

So, both notes, this from the \<Create alert\> and this from the \<Add Note\> are lost.  
Is there a way to create any different special notes, in dependency, if the subject of the alert contains any words, in the same Integration?


Answers:
author: Nick H
body: Hi [@Alain Rohner](/t5/user/viewprofilepage/user-id/4989901) ,

Seems like you are aware notes can be added at alert creation through the Create Alert action's Note field.

But it's important to note the Add Note action would be a second request received by Opsgenie, and does not apply at alert creation.

For example below, I have a Create Alert action that adds a note at creation, and an Add Note action that adds a note if the integration received a second request/email. The Add note action would apply if the request/email did not match any of the actions configured above it.

I mention this because all the integration actions are reviewed in an order of operations from top \>\> down, and Opsgenie will use the first matching filter/action it finds without reviewing any others following that.

![note1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/206794i1C1E9085CA57B141/image-size/large?v=v2&px=999 "note1.jpg")

![note2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/206791i553AF2FBE5D64FF6/image-size/large?v=v2&px=999 "note2.jpg")![note3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/206792iD98B7721F881B337/image-size/large?v=v2&px=999 "note3.jpg")![note4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/206793i8E0443716568E830/image-size/large?v=v2&px=999 "note4.jpg")

So your use case is certainly possible - but again the Add Note action would be the second, or any additional request received by Opsgenie.

If a note did not add to the alert as expected, you could also review the Logs tab of you Opsgenie to see if an action did not match, there were any errors, etc.

Hope that helps.

comments: author: Alain Rohner
body: Hi [@Nick H](/t5/user/viewprofilepage/user-id/2540930)   
Thanks a lot for your help. We deleted all "Add Note"s and created now different "create Alert"s with different conditions and that works perfect!  
Have a nice day and kind regards,  
Alain


Tags: cloud