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

I am trying to get the Team's name and the Responder Name thru an API call.

Kiranmayi Yalamanchi March 11, 2022

Hi, 
I am trying to modify an existing API that already pulls $OGAlert.teams.id and $OGAlert.responder.id

I want to replace those ids with names so, used these 2 fields 

$OGAlert.teams.name
$OGAlert.responder.name

But, these fields are returning blanks. 

Can I get help to get the right fields for the actual names of teams and responders??

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Darryl Lee
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2022

Hi @Kiranmayi Yalamanchi ,

This is Darryl. I am here to help. 

Understand that you would like to obtain the Teams and Responders of an Opsgenie Alert via API calls.

I assume that you are incorporating the Get Alert API Call to craft your script.

Please note that the response of this endpoint for the Teams and Responders field is always the full ID, instead of the Name.

The alternative here is to make 2 extra API calls to incorporate the IDs you've obtained:

  1. Get Team, the name is contained in the field "name".
  2. Get User, the name is contained in the field "fullName".

Hope this helps.

Kind regards,
Darryl Lee
Support Engineer, Atlassian

Kiranmayi Yalamanchi March 14, 2022

Thanks so much for the prompt response, @Darryl Lee

Will try the additional  APIs and will let you know if I need any furthur assistnace.

Best regards,

Kiran

Like Darryl Lee likes this
Darryl Lee
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2022

Hi @Kiranmayi Yalamanchi ,

No problem at all!

Looking forward to your test result. :)

Kind regards,
Darryl Lee
Support Engineer, Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events