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,297,341
Community Members
 
Community Events
165
Community Groups

REST API Create Alert : No Owner despite user field filled

Hi,

I'm testing the Create Alert api : POST https://api.opsgenie.com/v2/alerts
Managed to create an alert but fail to provide a Request Owner.

OpsGeniePostmanCreate.png

OpsGenieAlertNoOwner.png


User exists and is visible in the List User API, not blocked, verified.

Tried with id, fullname, username in the json body, to no avail.

How can I change the Request Owner of an alert I create via Create Alert API ?

1 answer

0 votes
Nick H Atlassian Team Jun 21, 2022

Hi @Romain Bonnot ,

It's important to note that Ownership is only given to a user when the alert is assigned to the user, or if a user ack's the alert. 

This can be done through our API with either the Assign Alert API, and somewhat through Acknowledge alert API - but realistically the user will want to ack the alert manually so users have better visibility. For example:

Assign Alert API:

asapi1.jpgasapi2.jpg

 

Acknowledge Alert API:

asapi3.jpg

^ When an alert is ack'd through the Alert API, alert shows the Alert API as the Owner.

 

Acknowledging an alert manually:

asapi4.jpg

^ Alert shows the user as the Owner.

Hi @Nick H ,

Thanks for your detailed answer !

It is indeed my actual process to use the Assign API but it forces me to await API result (well create alert requests are processed asynchronously so it wont really hurt performances) and make a secondary API call to Assign upon every alert creations.

Problem is, I want to create already assigned alerts and from the documentation the user field seams to be exactly what I need.

Can you confirm this field is ignored by the Create Alert API and there is no way to give ownership upon Create Alert call ?

Nick H Atlassian Team Jun 21, 2022

Hi @Romain Bonnot ,

It's not possible to assign an Owner at alert creation. Adding a user as a responder to alert via Create API will simply notify that user of the alert (/add them as a responder) - but the user still needs to acknowledge the alert to take Ownership:

asapi5.jpgasapi6.jpg

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

16 views 0 0
Read article

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