Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to see a list of all the "tags" used on alerts in Opsgenie?

richard.n.pykkonen September 20, 2022

Unlike labels in Jira, when I start to type a tag in Opsgenie, there is no autofill. I would like to get a list of all the tags that are in use in Opsgenie.  Is there a way to get that list?

1 answer

1 vote
Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2022

Hi @richard.n.pykkonen ,

Opsgenie doesn't have an autofill for tags at this time.

You could review the alerts in the Analytics tab >> Alert Analytics report. Add a filter that looks something like this, then export the list via CSV and manipulate the data there:

tags1.jpgtags3.jpg

 

There's also this table in the Alert Analytics report that shows the most used tags based on the report's filter as well:

tags2.jpg

 

You could also run a query in the Alerts tab for something like:

tag !: null

and export these alerts via CSV as well:

tags4.jpg

richard.n.pykkonen September 21, 2022

Thank you for the help.

Like Nick Haller likes this
devin42r
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 6, 2022

What about through the API @Nick Haller 

I want to get all tags in incidents and/or alerts

Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2022

You can query on the alerts that have tags with something like either of these using the API:

tag !: null

https://api.opsgenie.com/v2/alerts?query=tag%20%21%3A%20null

or using a wildcard: tag: "*"

https://api.opsgenie.com/v2/alerts?query=tag%3A%20%22%2A%22

 

The incident query isn't as robust, and does not support Null querying. You could probably get away with using a wildcard with something like this for the incident API:

https://api.opsgenie.com/v1/incidents?query=tag%3A%20%22%2A%22

 

I typically use a URL encoder to help determine what the query should be:

https://www.urlencoder.org/

url1.jpg

 

Other helpful documents:

Search queries for alerts

Search syntax for incidents

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events