Why alerts are not being auto-assigned?
Asked by Joanne Oliveira:

Hey Team!

I set some alerts from New Relic to OpsGenie but they are not being auto-assigned as I thought they should be. This is what I see in the Alert Log

*Skipping Create alert notification policies for alert because it doesn't have an owner team.*

I created a Global Policy, to assign to my team, shouldn't this be enough? I think I am missing something :(

![image (5).png](/t5/image/serverpage/image-id/219739iE94F437BE485B128/image-size/large?v=v2&px=999 "image (5).png")


Answers:
author: Nick H
body: Hi [@Joanne Oliveira](/t5/user/viewprofilepage/user-id/4983135) ,

Alerts cannot be auto-assigned to a user. A user needs to acknowledge the alert to become the Owner, or the alert can be assigned to a user as well:

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

Sending alerts to a team through an integration or Alert policy would notify your users based on what you have configured under the [team's On-call tab](https://support.atlassian.com/opsgenie/docs/configure-a-team-dashboard/); reviewing the routing rules, escalations, and on-call schedules.

You should be able to send these alerts directly to the team through the integration instead of using an Alert policy, but I suppose it's all dependent on the use case.

The log you shared - "*Skipping Create alert **notification policies** for alert because it doesn't have an owner team"* - isn't really related to notifying your users though. [Notification policies](https://support.atlassian.com/opsgenie/docs/create-and-manage-team-alert-policies/#Notification-Policy) are used to delay / suppress notifications, auto-close alerts or restart notifications. They only can be applied to the Owner team of an alert though - like this team:

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

comments: author: Joanne Oliveira
body: Hi Nick, thanks for clarifying, let me explain a little bit.

My customer has a huge amount of integrations set on OpsGenie to conect with New Relic. I find these hard to maintain and I was thinking if there's a way to have one unique integration and put the rules to assign alerts to groups somewhere else. I thought about creating a single integration, and then create global policies. Would that work?

I looking for a solution where we still have rules but a single integration for all the teams.


author: Nick H
body: Hi [@Joanne Oliveira](/t5/user/viewprofilepage/user-id/4983135) ,

That makes sense. Alert policies can be used for this use case, but you should be able to configure this under one integration without alert policies.

If you leave the integration global - meaning it is not assigned to any team - then a Responder field appears within each create alert action.

Each action can filter on whatever data is being received from New Relic, then add the corresponding responder/team to the alert. For example:

![newr1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/219909iC92E081F930C9E5B/image-size/large?v=v2&px=999 "newr1.jpg")![newr2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/219910i33E23DEF04D32FF8/image-size/large?v=v2&px=999 "newr2.jpg")![newr3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/219911iC35F9A34212E48CF/image-size/large?v=v2&px=999 "newr3.jpg")

Some things to note:

* The Advanced tab is only available on the standalone Opsgenie Standard and Enterprise plans, or JSM/O Premium and Enterprise plans.
* [Integration actions](https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/#Action-Processing) are processed in an order of operations from top \>\> down. If Opsgenie does not match on the Community action above, the Dev action would be reviewed, and so on - until a match is met.
* Once a match is met, Opsgenie will not review any other actions - so order sometimes matters.
* [Regex](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/#Regular-Expressions-for-Filtering-with---x27-Matches--x27--Rule) is used within the State condition as an AND/OR.


author: Joanne Oliveira
body: That actually helped a lot! Thank you so much :)


author: Alex Koxaras _Relational_
body: Hi [@Joanne Oliveira](/t5/user/viewprofilepage/user-id/4983135)

Did you create any schedule for your team? Who is on-call during specific hours?

comments: author: Joanne Oliveira
body: Hi Alex!

I am the only one currently on the Team and yeah, I am on-call

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


Tags: cloud