...
Info |
---|
This method allows bulk push from Salesforce to Jira with a maximum of 50 associations per push. |
\uD83D\uDCD8 Instructions
Create a “string” field in jira and add it to the edit screen for the Jira Issue.
Create a “text” field in Salesforce and add it to the Case layout. Help And Training Community
Map both fields between them.
Set our auto-push trigger in your instance. More information can be found here Configuring Automatic Pull from Salesforce.
Code Block trigger CaseUpdatedTrigger on Case (after update) { JCFS.API.pushUpdatesToJira(); }
In Salesforce, make a mass update on the created field (add a value) to trigger the APEX trigger.
Follow the steps below for the mass update:
Click on Cases at the top of Salesforce
Select “All Open Cases” List Views.
If you have Record Types on your cases, follow the steps below; if not go to point d.
Click on the filter button > Add Filter > Field: Case Record Type - Operator: equals - Value: Select one of the Request Types. > Click on Save
Click on the “List View Control” Button > Select Fields to Display > Select the created SF field on step 2. > Click on Save.
Select a max of 50 cases by clicking on the Checkbox at the beginning of the list.
Please note that Salesforce Future methods are subject to asynchronous execution limits, which include a limit of 50 calls per transaction and a maximum timeout of 60 seconds.
In the first case of the list, click on the Created field in Step 2 and edit it with any value. You should see a checkbox asking you to update the 50 selected items. Check the box and click Apply.
This will update all the selected cases, thus activating the trigger implemented in point 4 and causing a bulk push.
Repeat steps b to f for all cases that need to be updated.
...