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

Alert note field DOES NOT add when adding new Jira comment Edited

Deal all,

We need to add a note in Alert when a new comment is added in our Service managment ticket created by the Alert.

When we acknowledge the alert, the Jira issue comment field is updated correctly

but when we add from jira a new comment, the comment is not going back to the Alert note and the log says that No action found

The integration for Add note is fully there as seen below :

DFFrE3BFWk.png

 

Here is the log data

efKCTyKx01.png

As you can see from log the comment field is set and web hook event is correct

What is wrong in this which prevent this action to execute ?

regards

1 answer

0 votes
Nick H Atlassian Team Jun 29, 2021

Hi @serge calderara ,

That Webhook Event value is not correct. As your log shows, the value needed is:

Webhook Event Equals comment_created

NOT jira:comment_created

-Nick

Hello @Nick H , so stupid I am, thanks it works now.

based on that I still have a question

Let say that my Service managment Incident issue type has a particular workflow with different status.

Q1 : If I resolve the incident from SM, is there a way to sync it back to resolve Incident in Opsgenie ?

Q2 : if we resolve the Incident from Opsgenie, what happen if the SM incident issue type workflow Resolve state has a condition, is it skipping the condition or does Resolve state should be fully allowed at a given time ?

regards

Nick H Atlassian Team Jun 30, 2021

Q1 : If I resolve the incident from SM, is there a way to sync it back to resolve Incident in Opsgenie?

Are you referring to resolving an Opsgenie incident from a JSM issue, or an Opsgenie alert? We categorize the two differently.

If you resolve the JSM issue / incident, yes this can close the corresponding Opsgenie alert.

At this time, you cannot resolve an Opsgenie incident from a JSM issue / incident. You'd have to do this within Opsgenie.

 

Q2 : If we resolve the Incident from Opsgenie, what happen if the SM incident issue type workflow Resolve state has a condition, is it skipping the condition or does Resolve state should be fully allowed at a given time?

We'd recommend the Resolve state be available for all statuses. Otherwise, this could cause issues like 400 errors.

comm12.jpg

 

Hope this helps!

@Nick H thanks, sounds more clear now.

By the way now we are able to update note from jira issue comment.

BUt still a last question :

From the Alert, when it is assign to a user, is tehre a way to sync the Alert Assignee with the Jira SM issue assignee ?

regards

Nick H Atlassian Team Jun 30, 2021

Out-of-the-box - there isn't a way to assign the JSM issue to the user that ack's the Opsgenie alert. I believe we have a feature request for this that I can add you to.

In the meantime, we have seen some customers using Automation Rules in JSM to build this functionality. I'll map the steps below:

 

In Opsgenie - Map the integration to add a comment on the ticket when the alert is acknowledged:

comm123.jpg

^ this will consistently add a comment on the JSM issues with something like:

"User XYZ acknowledged alert:"

 

Then in Jira - create an Automation Rule that filters on this comment, and assigns the corresponding user to the issue:

comm1234.jpg

 

Here's an example of that in action:

comm1212.jpg

comm1231.jpg

 

One thing to be aware of is you'd need an automation rule for each user, so it's not exactly scalable on a larger level, but it is realistically the only workaround at this time.

-Nick

thanks @Nick H , 

Could it work that way :

When Team user ACK teh alert from opsgenie, the comment is added, but Alert is not yet assign in opsgenie on Acknowledge.

The user press Assign button in ALert and select a user from the team

1 - Is there a way to add the slected user in a comment when Alert is Assigned ?

2 - is there a way then to extact that user wthin automation rule ?

3 - Or does the Alert Asignee user can be mapped to a jira issue information as extenstion property ?

 

regards

Nick H Atlassian Team Jun 30, 2021

You can map a number of different Opsgenie alert actions to add comments on the JSM issues - like if the alert is assigned to another user, Ownership is taken, etc.:

comm1122.jpg

 

Then use the steps outlined above with automation rules - filtering on the comment - and having the automation rule complete an action - like assign it to a user:

comm1221.jpg

The comment will vary depending on the action. If I wanted to filter on the comment above when assignment is taken, I'd probably want to used "to User XYZ."

Again - we don't have anything out of the box so using automation rules for this use case is the closest workaround.

I'd suggest you do some testing on your end - adjusting what Opsgenie alert actions are taken, how they post as comments, how you want your automation rules to act, etc.

hello @Nick H , I will give a try.

Some precision if you don't mind on Alert.
We notice that one an Alert is occuring and an Incident is created based on incident rules , 3 things happen.

1 An incident is created
2 The source Alert is associated to the incident and flag as A
3 A responder Alert is created as well with flag R

Should the team work in Associated Alert or Responder Alert ?
As the Associated alert has a responder team define and user can be notified from this alert, what is the use of creating a Reponder Aler ?

regards

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

943 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