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,462,996
Community Members
 
Community Events
176
Community Groups

Possible to add responder via automation to an incident ?

Hello,

 

I was wondering if it's possible to add a responder to a newly created incident in JSM through automation rules?

Thanks for anybody that reply ;-)

 

2 answers

1 accepted

2 votes
Answer accepted
Charlie Misonne Community Leader Jan 20, 2022

Hi Nico,

This is possible when using the "edit issue" action.

Under "more options" you can add a json to update field. Try this:

{
"update":{
"customfield_10091":[
{
"add":[
{
"ari":"<opsgenie_reference>",
"name":"<name of the team>",
"type":"team",
"avatarUrl":null
}
]
}
]
}
}

Where "customfield_10091" is the ID of your Responders field

If you want to find the value of the placeholders I used you can take an existing ticket where the field has been filled out. The endpoint for that is /rest/api/2/issue/<KEY>

Hope this helps!

Perfect! it works ;-)

What is the ari?  Where can I find this?

image.png

What should be added as <opsgenie_reference> ?

Charlie Misonne Community Leader Jan 26, 2022

The easiest way to identify this is by looking it up in an existing Jira ticket you have.

Append this to your Jira URL to fetch all the data of that ticket and search for ari in the response. Reuse that in your automation.

/rest/api/2/issue/<KEY>

There's probably a way to find it in OpsGenie too but I can't check it right now 

Hi @Charlie Misonne Could you help me to understand how I need to build the URL?

 

I need to use this jason but I haven't been able to find the opsgenie-reference for the opsgenie-team :-(

0 votes
Tansu Akdeniz Community Leader Jan 19, 2022

Hi @Nico Lenaerts 

Yes, you can create an automation to send a custom reply on create action. Go to JSM project -> project settings -> automation and create a new rule.

Btw, you can also edit default "request created" notification from project settings -> customer notifications.

Hi @Tansu Akdeniz 

Thx for your quick reply!

I just tried to setup sending a "custom reply" by adding a new action, but I can't seem to find the custom reply...

Is it possible to elaborate just a bit more?

Thank you!

2022-01-19_10h47_16.jpg

Tansu Akdeniz Community Leader Jan 19, 2022

You can use "Send email" function. Or it is possible to use "Comment on issue" (share with customer visibility) which will send a comment over the original request created mail. It will trigger "Public comment added" system notification.

If it is generic message, as I said before, change the following notification instead of creating a rule (below). Defining a new automation rule makes sense if there will be conditional cases.

Ekran Resmi 2022-01-19 13.33.36.png

Like Nico Lenaerts likes this

Hey @Tansu Akdeniz 

Maybe I wasn't so clear before, so my apologies!
What I really want to do is to add (in an automated way a responder (team from OpsGenie) whenever a new incident is created like shown here in the screenshot:

I don't want to send an email to person, but my goal is this:
Whenever a responder is added, a new "alert" is created in OpsGenie and the responder will be the owner of this alert. So this is where I want to go to...

2022-01-19_12h15_31.jpg

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events