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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,463,730
Community Members
 
Community Events
176
Community Groups

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

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 Mar 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

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 Mar 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

Atlassian Community Events