Sync Jira Data to Ironclad
Goal
Sync Jira data to an Ironclad workflow by updating the workflow's approval status and metadata during the review step.
Overview
This solution pattern provides a method for pushing Jira approvals and data to Ironclad. These actions must occur during Ironclad’s review step when contract approvals and metadata can be updated.
This solution pattern is built around the use case of a Finance team approving a vendor agreement in Jira. The Finance team will update a Cost Center Jira field (if needed) and register their approval by transitioning the issue from Finance Review
to Legal Review
. Their approval will be sent to Ironclad along with the updated Cost Center. This general pattern can be applied to other use cases involving data and process sync between Ironclad and Jira.
Prerequisite: The Launch Ironclad Workflow from Jira solution pattern must be completed before you attempt to configure the solution described in this section. That solution pattern stored key Jira information (Jira Issue ID
) in the Ironclad workflow and key Ironclad workflow data (Ironclad Workflow ID
) in the Jira issue.
Details
In contrast to the Launch Ironclad Workflow from Jira solution pattern, this pattern will not use a custom Jira webhook to start the Zap. All filtering will be performed in Zapier to demonstrate a pure Zapier approach.
Custom Jira Webhook vs. Zapier Filtering
You may prefer a custom Jira webhook if you want to minimize the number of Zapier requests generated and/or avoid building complex filtering in Zapier. If complex Jira processes determine the types of events that require Ironclad interaction, it may also be easier to manage this filtering directly in Jira to maintain consistency.
The figure below shows the Zapier steps that we will configure for this solution:
- Pushing an approval from Jira to Ironclad by sending a request to Ironclad’s Update Approval on a Workflow endpoint.
- Pushing metadata from Jira to Ironclad by sending a request to Ironclad's Update Workflow Metadata endpoint.
We'll now walk through the steps to configure this rule and make the necessary configuration changes in Jira and Ironclad.
Configure Ironclad Workflow
- In Ironclad, create an approver that represents the Finance approver.
- Default approver: Select the Ironclad service account used in the setup for Launch Ironclad Workflow from Jira as the default user.
- An approval can only be updated via public API if the request targets the user currently assigned as the approver; using the same Ironclad service account provides a consistent target.
- Adding additional human approvers is recommended as a backup; the backup approvers can re-assign the task to themselves and manually provide approvals if an unexpected issue occurs.
- Resend for approval: Uncheck the Resend for approval when workflow is updated option if the approval is a one-time event. By default, approvals are resent whenever the document or metadata changes. Unchecking this option avoids the need to seek re-approval for one-time approvals. For approvals that are not one-time checks, many teams opt to use ad-hoc approvals and manual intervention for flexibility.
- Default approver: Select the Ironclad service account used in the setup for Launch Ironclad Workflow from Jira as the default user.
Configure Jira Issue
- In Jira, identify fields and/or statuses that will be used to trigger the update in Ironclad and supply Ironclad with metadata.
- This solution pattern uses a status transition from
Finance Approval
toLegal Approval
to trigger the update. - This solution pattern passes a Jira text field called
Cost Center
to Ironclad as a workflow metadata update.
Zapier - Configure Trigger and Storage
- In Zapier, create a new Zap and add Updated Issue in Jira as the trigger.
- In Jira, simulate the relevant update that you want to use as the trigger for updating the Ironclad approval (e.g., transitioning an issue’s status).
- In Zapier, verify that the trigger receives the test data.
- In Zapier, add a Storage by Zapier action. The current status from the Jira update must be compared to its previous status to determine if the issue was transitioned from
Finance Review
toLegal Review
. This comparison requires storing the previous status and tracking it as updates occur.- In Choose app & event, select the Get Value action to pull the current issue status.
- In Choose account, select your existing Zapier account or create a new one if needed.
- In Set up action:
- For Key, select the Jira issue id from the trigger data.
- For Value, select the Jira status name from the trigger data.
- Check the Create Storage by Zapier Value if it doesn’t exist yet? checkbox.
Storage by Zapier
Please note the limitations in the Storage by Zapier action (e.g., deletion of keys after 3 months of inactivity).
- In Zapier, test the storage action to ensure a value is stored so it can be referenced in the next action.
Zapier - Configure Paths and Filter
- In Zapier, add a Paths action. Name Path A as
Finance Approval Received
and Path B asUpdate Storage Value
.
In the steps that follow we will configure the actions under the Finance Approval Received path as shown here:
...and we will configure the actions under the Update Storage Value path as shown here:
Zapier - Update Ironclad Approval Status
- In the Finance Approval Received path, create a condition to determine if the previous value (from storage) is
Finance Review
and the new value (from trigger) isLegal Review
.
-
In the Finance Approval Received path, add an Ironclad action and select Update Workflow Approval as the action event. The action will target the Update Approval on a Workflow endpoint to update the approval status.
-
For Email, enter the email address of the Ironclad user account you assigned as the default user for the Finance approval.
-
For Workflow ID, select the Jira field that stores the Ironclad workflow ID.
Note: After selection, confirm that this field has an example workflow ID in it; the next steps will use that workflow ID to retrieve the list of approvers. If it is empty, (1) ensure you have a Jira issue with a valid Ironclad workflow ID in it (e.g., a Jira issue from the first solution guide that launched an Ironclad workflow) and (2) return to the Jira trigger at the beginning of this Zap to select a test issue that contains the workflow ID.
-
In Ironclad, confirm that the workflow corresponding to the example workflow ID is at the Review step or move it there.
-
For Role ID, select the Finance role. If you receive an error, return to steps 8(ii) and 8(iii) in this section and ensure that there is an example workflow ID that corresponds to a workflow at the Review step.
-
Test the action when complete.
-
Zapier - Update Ironclad Workflow Metadata
-
In the Finance Approval Received path, add another Ironclad action and select Update Workflow as the event. The action will target the Update Workflow Metadata endpoint to update the workflow's metadata.
- For Workflow ID, select the Ironclad workflow ID from the trigger.
- For Workflow Schema, select your workflow design.
- For Cost Center, select the cost center field from the trigger.
- For Comment, add a comment that you wish to appear in the activity feed to explain the update.
- Test the action when complete. Exit the path to return to the Zap.
Updating Workflow Metadata
Updating a workflow's metadata will reset any existing approvals unless they are configured to not reset Reset Approval Configuration. Updates will be attributed to the user that generated the API token.
As best practice, consider the timing and necessity of metadata updates from Jira.
Zapier - Configure Storage Update
- In the Update Storage Value path, create a condition to determine if the status has changed by comparing the status in storage to the status from the trigger.
-
In the Update Storage Value path, add a Storage by Zapier action and select the Set Value action.
- Configure the action to update the storage status value with the value from the trigger.
- Test the storage action when complete. Exit the path to return to the main Zap.
-
Publish your Zap. Congratulations, you have a Zap that can sync Jira approvals and data to Ironclad workflows!
Updated 4 months ago