Cannot save Shared Action containing multiple post-functions in JMWE for Jira Cloud

Cannot save Shared Action containing multiple post-functions in JMWE for Jira Cloud

 Problem

When editing or creating a JMWE for Jira Cloud Shared Action containing multiple post functions, the Shared Action cannot be saved and an “Error while saving” popup message displays.

 Solution

If a Shared Action contains multiple post functions that include long scripts, the resulting configuration will be too long, causing the Shared Action to fail to be saved correctly.

This is a recognized issue with JMWE; there is a limit to the total length of an Action. To address this limitation, consider dividing the current Shared Action's post functions into multiple embedded Shared Action post functions (secondary Shared Actions within the primary, original Shared Action). Each of these should contain a specific subset of the required post functions.

For example, if the Shared Action that cannot be saved contains 12 different post functions, you can convert it into the following:

  1. Create one Shared Action that contains post functions 1-3

  2. Create a second Shared Action that contains post functions 4-6

  3. Repeat Step 2 for post functions 7-9 and 10-12, respectively. This will result in a total of 4 secondary Shared Actions.

  4. In the main Shared Action, have it run four Shared Action post functions, one for each of the four new Shared Actions you have created.

 Related articles