How to allow JSM Cloud Operations Sync to filter Alert actions based on custom fields or JQLs

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

   

Summary


Currently, we have the following feature request to allow our JSM integration Sync integration with Operations to allow custom fields as a filter to the Alert actions:

This article provides a workaround using Operations Sync and Jira Webhooks to add a JQL (which can consider custom fields) as a filter for the Alert actions.

Important note

This solution is only available for customers with JSM Premium or Enterprise offerings, as modifying Alert actions is only available for those licenses.


Solution


As a workaround for the feature request, you can create a sync using the Different Site option, but you're not actually using a different site—you're essentially calling back into your JSM site.

  1. Create the Sync:

    1. Go to your team’s operations page

    2. On the left navigation panel, select Sync and then Create sync

    3. Under Choose your project's Jira site select Different Jira Site

    4. Give the Sync a Name

    5. Select the appropriate Assignee Team

    6. Select Service for the Project Type

    7. Make a copy of the URL listed in the Steps to configure the sync box

    8. Configure your Alert Rules - Make sure they'll match the Webhook events being sent from Jira (for example jira:issue_updated and/or  jira:issue_created)

    9. Click Turn on Sync

  2. Create the Webhook in Jira:

    1. In Jira navigate to Settings -> System -> Webhooks

    2. Click Create Webhook

    3. Give it a name

    4. Supply the URL copied from the Sync creation steps above

    5. Under Issue Related Events, supply your JQL that includes your custom field

    6. Under Issue, check the created and updated boxes 

    7. Click Create Webhook

The above steps should generate alerts in the appropriate team based on the JQL.



Last modified on Jul 31, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.