Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to add dynamic responder while creating alert via API.

Ravinder Kumar
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 14, 2024

I have created an integration under teams. 
I am using the integration API key to create an alert and in the API's body, I am providing a user as responder. But instead of the responder that I have provided in the body, the responder is getting overridden by the team.

Documentation also says the same - "If the API Key belongs to a team integration, this field will be overwritten with the owner team".

Is there any way to set a specific user as a responder from my team while creating alert  via API.

1 answer

1 vote
Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 15, 2024

Hey Ravinder, 
Thanks for reaching out to Atlassian Community! 

Currently, if you use an API key from a team integration to create an alert, the responder will indeed be automatically set to the owner team of that integration, as documented. Unfortunately, there's no way to directly override this behavior to specify individual users as responders when using a team API key.

However, a possible workaround is to first create an alert via the API with the team as the responder (since it gets assigned automatically), and then use another API call to update the alert by adding specific users as responders.

Another alternative is to create a separate API integration at the global level, instead of a team level, which might give you more flexibility in defining specific users as responders directly in the request body.

Best Regards,
Egor

Suggest an answer

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

Atlassian Community Events