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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Salesforce integration with OpsGenie

Hi all

I have gone through this https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-salesforce-service-cloud/ for an SFDC integration.

For the point stating "When the case's state is changed to Working in Salesforce Service Cloud, the corresponding alert is acknowledged in Opsgenie." - is there a way to customize that? I.e. the SFDC system has been used for years with specific Statuses ... but Working has not been one of them.

How can we customize the integration so we can define our status or set of statuses to acknoledge the alert?

Thank you
Yatish

1 answer

1 vote
Nick H Atlassian Team Jul 08, 2021

Hi @Yatish Madhav ,

By default the integration is configured to ack the alert when the "Working" status is sent from SFDC >> Opsgenie.

If you are subscribed to Opsgenie's Standard or Enterprise plan, you can edit what status, or actions, acknowledge an alert under the integration's Advanced tab >> Acknowledge Alert action:

sfdc1.jpgsfdc2.jpg

 

Here is where you can substitute your instances statuses, add other conditions, etc. - in order for the integration to ack an alert by a received SFDC request. 

Hope this helps! Let us know if you have any additional questions, issues, etc.

Thanks for this, Nick.

I have tried that but it did not seem to have worked unless I am missing something else.

I set check for the Status = Investigating for testing for Ack-ing the alert and Status = Closed for closing the alert ... but it does not seem to be happening to the Alert.

Please advise?
Thank you

Nick H Atlassian Team Jul 14, 2021

Is the Investigating SFDC request making it to the Acknowledge action? 

Can you check the logs of that request to see how Opsgenie is receiving the request, and what action it's trying to execute?

It's tough to advise without seeing the alert, reviewing the logs, etc. If you can share any screenshots of the logs, as well your current configuration, I might be able to advise from there.

Hi

So my rule for Ignore is 

Priority not equals 4 Minor Impact

So my rule for Close alert is 

Priority equals 4 Minor Impact

So my rule for Close alert is 

isClosed equals true

So my rule for Ack alert is 

Status equals Investigating

So my rule for Add note is 

Match all alert (with a test note)

 

For all of them Alias is {{alias}}

 

Yes the Investigating case is pulled through under the activity of an existing alert as "Alert is received with same alias. Message: "Salesforce event: Case with number 20151195 created with status : "Investigating"". Count is increased to 6"

See logs here - it looks like :

create

create.png

ack

ack.png

close

closed.png

ack and close actions

ack and close actions.png

It seems to be quite extensive these logs ... Please let me know

Thanks in advance

Nick H Atlassian Team Jul 21, 2021

It looks like those logs indicate that the requests are being deduplicated - which occurs when the alias of an alert matches the alias of an open existing Opsgenie alert. The other actions such as Close, Ack and Add Note are also dependent on this field.

But what seems to be happening is the requests are matching your Create Alert action. The integration's actions will be reviewed by Opsgenie from top >> down (Ignore >> Create >> Close >> Ack >> Add Note). When Opsgenie finds a matching filter / conditions, it will use that action.

You mentioned your Create Alert action filter is: Priority equals 4 Minor Impact.

You will most likely need to add another condition(s) that does NOT match on the close requests being received. Maybe something like this:

sfdccomm.jpg

 

Hope that helps!

Super! Thanks for the guidance. That has resolved it for me for the Close and Ack actions ...

The only one left is the Note action ... I currently have it for match all alerts ... but it does not seem to add the test note in the action - what from the Salesforce side would trigger the Add Note action for all alert matches?

Nick H Atlassian Team Jul 22, 2021

"What from the Salesforce side would trigger the Add Note action for all alert matches?"

To be honest, I'm not entirely sure. By default when adding a new SFDC integration, there isn't an Add Note action added by default. I also don't have an instance to test.

Without seeing how these requests might differ from others (like create, close, etc.), it'd be tough to provide suggestions. This would realistically depend on what is sent in the payload by SFDC >> OG. You could review these logs, and check what might differ - then adjust your other actions' filters so they do not trigger when a note is added, and can then match on the "catch-all" Add Note action that is set to Match All.

I'd suggest testing on your end, and reviewing the payload / request if received by Opsgenie when a note is added on the SFDC side. Then comparing it to other requests received. If no log or request is received by Opsgenie when a note is added on the SFDC side, then that would indicate these are not being received by Opsgenie, and some configuration would need to be done in SFDC to send to Opsgenie.

Hope this helps! Let us know if you have any other questions.

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Opsgenie

Leveraging Atlassian’s Opsgenie and AWS Cloudformation Registry to stay ahead of incidents

In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...

948 views 0 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you