Trigger code when an association is unlinked

Cloud Migration Resources

Planning a Jira Cloud migration? These resources can help you get started:

Connector for Salesforce & Jira Cloud features – Review Cloud features and understand key differences between DC and Cloud.
Migration support from Appfire – Learn how we can help you migrate smoothly.

Trigger code when an association is unlinked

The app allows you to subscribe to Appfire’s Salesforce package events to invoke custom code after a specific action occurs.

To be notified about the UNLINK action, you can create a new Apex class that implements the SfjcActionEventListener interface.

MyListener
global class MyListener implements JCFS.SfjcActionEventListener { public void onEvent(String eventName, Map<String,Object> data) { System.debug('Hello world!'); System.debug(eventName); System.debug(data); } }

The UNLINK event contains the following fields:

  • son - string, e.g. Case

  • soid - string - the Case Id

  • jiraIssueId - string

In this example, MyListener listens for a UNLINK event between Jira and a Salesforce object. Once the UNLINK event of the association is detected, a debug message is sent to the execution log.

To use this feature, you must grant the WebhookRestResource Apex class access to the integration user profile.

  1. Go to Setup sf-setup-icon.pngand enter Apex Classes in the Quick Find field.

  2. Select WebhookRestResource > Security.

    2025-10-15_15-55-50.png

     

  3. Add the integration user profile to the Enabled Profiles.

    2025-10-15_15-58-44.png

     

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.