Skip to main content
Skip table of contents

zAgileConnect Flow Action - Unlink Issue

Please note that zAgileConnect license is required for a user to invoke this Action. Additionally the user must have the “zAgileConnect Subscription User“ permission set and access to the “ZCProcessIssueUnlink” apex class.

You can unlink an Issue by using Salesforce Flow and adding the “Unlink Issue“ action to your flow. The action has the following fields:

Unlink Issue Action Fields

Field

Type

Required

Description

connectionId

String

If multilple Jira instances are connected (for zAgileConnect Release 1.15.x and higher), specify the connection id (j00, j01, etc). Leave empty to use the default Jira connection.

entityId

String

(tick)

The Salesforce record Id to unlink from the Jira Issue.

issueKey

String

(tick)

The Jira Issue Key to unlink.

Error Handling

This invocable action executes callouts to Jira API and so is executed in an asynchronous transaction. For this reason this action does not return any result. Errors during Issue unlinking are sent via email to the Salesforce user for whom the Flow is being executed and will also show in the “Related Jira Issues“ section for the Salesforce record provided (provided as entityId in the Flow Builder).

Example Flow to Unlink Issue from parent Case when Issue is unlinked from a Case

The following example will unlink an Issue from the parent Case when its child Case unlinks the same Issue.

In Salesforce → Flows create a new Flow from scratch

Select “Record-Triggered Flow“ and create, then select the “Case Issue” junction object and Configure Trigger as follows (note a record is deleted from the Case Issue junction object every time an Issue is unlinked from a Case):

Screenshot from 2024-12-17 16-42-47-20241217-214413.png

Add a Decision element to validate that Parent Case Id has a value

Screenshot from 2024-12-18 12-15-12-20241218-171815.png

It is necessary to validate if parent Case has the same Issue linked, add a Get record element to get Parent Case Issue Relationship (if any).

aa-20241218-184925.png

Add a new Decision element to validate if exists a relationship between the parent Case and the Jira Issue:

Screenshot from 2024-12-18 12-29-21-20241218-173035.png

Below “Yes” option, add the “Unlink Issue“ zAgileConnect Action

image-20241217-221050.png

Make sure to pass the Case -> Parent Case Id in the entityId field and ZIssue -> Issue key in the issueKey field

Screenshot from 2024-12-18 12-33-01-20241218-173429.png

Finally Save and Activate the flow. Then go to a Case that has parent Case and unlink an Issue, open parent Case and verify that the same Issue was unlinked as well.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.