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,298,558
Community Members
 
Community Events
165
Community Groups

Configure Opsgenie to Jira Automation rules with Terraform

Hi All, I am trying to create an Opsgenie -> Jira integration via terraform and i was wondering if it is possible to configure these automation rules with terraform as it's shown on the console. I have checked the terraform documentation but i can't seem to find anything that covers this.

Screenshot 2021-10-28 at 10.58.52.png

1 answer

1 vote

Hi Azunna, 

 

Justin here, from Opsgenie support - happy to help!

 

At the moment, it's not possible to configure these outbound integration actions through Terraform. However, I have raised up a feature request with our engineering team to expand the functionality of our provider to allow for this - hopefully it's something we can add in the future! For reference, that feature request ID is: OGS-4321. If you ever would like an update on that request status, please do feel free to reach out to us in support.

 

Please let me know if you have any other questions - thanks!

 

Justin S.

Atlassian Cloud Support

Thanks a lot! Will be looking forward to it.

Hi Azumma, 

 

Me too! Hoping it's something we can add in the near future :)

 

In the meantime, is there anything else I can help with?

 

Best, 

 

Justin S.

Atlassian Cloud Support

In addition to the request above,

1. It would be nice to also have support for the jira integration action filters on terraform.

2. When i try to register a webhook on jira via the api, it never takes my jqlfilters. It only returns an empty value for "issue-related-events-section".

See: https://community.developer.atlassian.com/t/creating-jira-webhooks-jqlfilter-not-working-as-expected/38437/3 

It's the same error i am experiencing.

Hi Azunna!

 

For item one - are you referring to the outbound alert filter (which determines which alerts are sent to Jira):

 

Screen Shot 2021-11-05 at 8.11.32 AM.png

 

 

Or the filters for inbound requests, to trigger alert actions (i.e. Create, Ack, Close, etc.):

 

Screen Shot 2021-11-05 at 8.11.47 AM.png

 

 

For item two - I do see this bug ticket that deals with some possibly incorrect information in our webhook API documentation:

 

https://jira.atlassian.com/browse/JRACLOUD-67911

 

Though I have not tested and confirmed - it may be worthwhile to reach out to Jira support directly to get their input on the matter.

 

But, let me know about the first questions, and I can either let you know if it's possible with Terraform, or I can add it to our existing feature request. 

 

Thanks!

 

Justin S.

Atlassian Cloud Support

Like Steffen Opel _Utoolity_ likes this

Hi Justin,

Yes for item one i am referring to the options to send alert updates back to jira and to also create issues for Opsgenie alerts.

Screenshot 2021-11-05 at 14.32.16.png

 

In addition to that, i noticed that the Opsgenie alert filter field types are only supported for API and Email Integrations which means you have to manually configure filters for other integration types, so it would be nice to have that for other integration types. It would also be great to be able to have terraform support for it as well.

On the jira issue, i have tested what you shared and it works. Seems like the documentation needs to be corrected. 

Thank you.

Hi Azunna, 

 

Ah, yes - it would be nice to support configuring those through Terraform - I agree! This request is covered in the feature suggestion I submitted earlier this week (OGS-4321). Hopefully it's something we can add in the future!

 

As for the second item - glad that worked! I'll let the Jira team know that they need to update their documentation, as well. 

 

Is there anything else I can help with at the moment?

 

Best, 

 

Justin S.

Atlassian Cloud Support

Nothing else, thank you.

Azunna, 

 

Awesome! If you ever need anything else, please don't hesitate to ask here, or to reach out to us via the in-app chat in Opsgenie. Have a good one!

 

Justin S.

Atlassian Cloud Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

208 views 1 4
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