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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.