Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 54

This article explains the steps required when migrating a JIRA Server instance to JIRA Cloud when you were using JMWE workflow extensions on your JIRA Server instance. 

Background:

Because of the way Atlassian's Connect framework is implemented, workflow extensions (validators, conditions and post-functions) provided by add-ons are incompatible between JIRA Server and JIRA Cloud. The entire JMWE configuration is contained within the workflows themselves. So you need to take a backup of your entire JIRA Server instance, identify the workflows and transitions that use JMWE workflow extensions, and fix them.

See here for Server/Cloud migration challenges or limitations.

Challenges

Workflows using JMWE post-functions/conditions/validators in the Server will break on the Cloud because post-function configurations are incompatible with their Cloud equivalents.

  • Some workflow extensions are unavailable in the Cloud and hence they need to be removed
  • Some workflow extensions need to be completely recreated looking at their equivalents in the Server, followed by deleting the existing one in the Cloud
  • Some workflow extensions might be Run as a specific user which fail to reflect the user in the Run as section after the import. You will have to identify them, edit them and add the user in the configuration looking at the Server.
  • Some workflow extensions might use Groovy scripts either to execute the post-function conditionally or set a field value or comment an issue. Wherever you use Groovy scripts, write its equivalent Nunjucks template. You can test your script result using

...

Missing features

Some features of workflow extensions mentioned below are unavailable in the Cloud. 

  • The Assign to last role member and Assign to role member post-functions do not have the option to customize the assignment
  • Send Issue commented notification: This option is irrelevant in Comment issue(s) and Comment linked issues post-functions of JIRA Cloud because the notifications will always be sent.
  • Use value before current transition: The Copy value from field to field post-function does not have the option to use the value before the current transition.
  • Clear field value/Clear field value of linked issues: These post-functions are not available in the Cloud version of the add-on. You can use either the in-built Clear field value post-function of Cloud or the Set field value post-function of JMWE and clear the field value.

Migrating workflows


Table of Content Zone
locationtop

Step 1 - Publish all your workflows

Before you begin fixing your workflows, publish all your workflows to avoid duplicate work (between the draft and corresponding published workflow)

Identify transition name from XML file

After identifying the condition/validator/post-function searching by the class name work your way up on the file from the line that to find the name of the transition on which the workflow extension is configured. You can identify it under the <actions> tag.

Identify workflow name from XML file

After identifying the transition name work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under the <Workflow> tag. Refer to the above image.

Image RemovedImage Removed

Step 1 - Backup the Server instance and open the XML file

  1. Using JIRA's XML backup utility backup your entire JIRA Server instance.

  2. Unzip the backup.

  3. Find the entities.xml file.

  4. Open it in an editor that supports very large files.

Step 2 - Identify workflows and transitions using JMWE conditions

...

Condition Name

...

Transition Name

...

Workflow Name

At the end of this step, you will create a table with the workflow name and the transition names of all the workflows that contain JMWE conditions.

Current Status Condition

  1. Find the text "com.innovalog.jmwe.plugins.conditions.CurrentStatusCondition"

  2. Find the transition

  3. Write down the transition name in the table.

  4. Find the workflow

  5. Write down the workflow name.

  6. Find the next instance of "com.innovalog.jmwe.plugins.conditions.CurrentStatusCondition"

  7. Repeat step 2 to 6 until you reach the end of the file

Hide transition

  1. Find the text "com.innovalog.jmwe.plugins.conditions.NonInteractiveCondition"

  2. Find the transition

  3. Write down the transition name in the table.

  4. Find the workflow

  5. Write down the workflow name.

  6. Find the next instance of "com.innovalog.jmwe.plugins.conditions.NonInteractiveCondition"

  7. Repeat step 2 to 6 until you reach the end of the file

Previous Status Condition

  1. Find the text "com.innovalog.jmwe.plugins.conditions.PreviousStatusCondition"

  2. Find the transition

  3. Write down the transition name in the table.

  4. Find the workflow

  5. Write down the workflow name.

  6. Find the next instance of "com.innovalog.jmwe.plugins.conditions.PreviousStatusCondition"

  7. Repeat step 2 to 6 until you reach the end of the file

Linked Issues Condition

  1. Find the text "com.innovalog.jmwe.plugins.conditions.LinkedIssuesCondition"

  2. Find the transition

  3. Write down the transition name in the table.

  4. Find the workflow

  5. Write down the workflow name.

  6. Find the next instance of "com.innovalog.jmwe.plugins.conditions.LinkedIssuesCondition"

  7. Repeat step 2 to 6 until you reach the end of the file

Linked Issues Status Condition

  1. Find the text "com.innovalog.jmwe.plugins.conditions.LinkedIssuesStatusCondition"

  2. Find the transition

  3. Write down the transition name in the table.

  4. Find the workflow

  5. Write down the workflow name.

  6. Find the next instance of "com.innovalog.jmwe.plugins.conditions.LinkedIssuesStatusCondition"

  7. Repeat step 2 to 9 until you reach the end of the file

Scripted (Groovy) Condition

  1. Find the text "com.innovalog.jmwe.plugins.conditions.GroovyCondition"

  2. Find the transition

  3. Write down the transition name in the table.

  4. Find the workflow

  5. Write down the workflow name.

  6. Find the next instance of "com.innovalog.jmwe.plugins.conditions.GroovyCondition"

  7. Repeat step 2 to 9 until you reach the end of the file

Separation of Duties Condition

  1. Find the text "com.innovalog.jmwe.plugins.conditions.SeparationOfDutiesCondition"

  2. Find the transition

  3. Write down the transition name in the table.

  4. Find the workflow

  5. Write down the workflow name.

  6. Find the next instance of "com.innovalog.jmwe.plugins.conditions.SeparationOfDutiesCondition"

  7. Repeat step 2 to 9 until you reach the end of the file

Step 3 - Identify workflows and transitions using JMWE validators

...

Validator Name

...

Transition Name

...

Workflow Name

At the end of this step, you will create a table with the workflow name and the transition names of all the workflows that contain JMWE validators.

Comment Required Validator

...

Step 2 - Backup the Server instance

Using JIRA's XML backup utility backup your entire JIRA Server instance.

Step 3 - Manually edit the XML

  1. Extract the backup and open the entities.xml file with any text editor (one that can open large files)
  2. Edit the XML file to delete workflow extensions that are unavailable
    1. Delete JMWE conditions that are unavailable
      1. Linked Issues Status Condition
        1. Search for <arg name="class.name">com.innovalog.jmwe.plugins.

...

Find the transition

...

Write down the transition name in the table.

...

Find the workflow

...

        1. conditions.LinkedIssuesStatusCondition</arg>
        2. You should see XML for the condition similar to this:Image Added
        3. Remove the entire <condition>...</condition> element.
        4. Find the next instance

...

        1. of the search.
        2. Repeat steps 3 and 4 until you reach the end of the file

...

Field has been modified validator

...

Find the text "com.innovalog.jmwe.plugins.validators.FieldChangedValidator"

...

Find the transition name

...

Write down the transition name in the table.

...

Find the workflow name

...

        1. .
      1. Scripted (Groovy) Condition
        1. Search for <arg name="class.name">com.innovalog.jmwe.plugins.conditions.GroovyCondition</arg>
        2. You should see XML for the condition similar to this:Image Added
        3. Remove the entire <condition>...</condition> element.
        4. Find the next instance

...

        1. of the search.
        2. Repeat steps 3 and 4 until you reach the end of the

...

Field has been single value validator

...

        1. file.
    1. Delete JMWE validators that are unavailable
      1. Linked Issues Status Validator
        1. Search for <arg name="class.name">com.innovalog.jmwe.plugins.validators.

...

Find the transition name

...

Write down the transition name in the table.

...

Find the workflow name

...

        1. LinkedIssuesStatusValidator</arg>
        2. You should see XML for the validator similar to this:Image Added
        3. Remove the entire <validator>...</validator> element.
        4. Find the next instance

...

        1. of the search.
        2. Repeat steps 3 and 4 until you reach the end of the file

...

Field Required validator

...

        1. .
      1. Scripted (Groovy) Validator
        1. Search for <arg name="class.name">com.innovalog.jmwe.plugins.validators.

...

Find the transition name

...

Write down the transition name in the table.

...

Find the workflow name

...

        1. GroovyValidator</arg>
        2. You should see XML for the validator similar to this:Image Added
        3. Remove the entire <validator>...</validator> element.
        4. Find the next instance

...

        1. of the search.
        2. Repeat steps 3 and 4 until you reach the end of the file

...

Parent Status validator

...

        1. .
    1. Delete JMWE post-functions that are unavailable 
      1. Scripted (Groovy) Post-function 
        1. Search for <arg name="class.name">com.innovalog.jmwe.plugins.

...

Find the transition name

...

Write down the transition name in the table.

...

Find the workflow name

...

        1. functions.GroovyFunction</arg>
        2. You should see XML for the function similar to this:Image Added
        3. Remove the entire <function>...</function> element.
        4. Find the next instance

...

        1. of the search.
        2. Repeat steps 3 and 4 until you reach the end of the file

...

Linked Issues Validator

...

        1. .
  1. Edit the XML file to replace the Hide transition and Field is required validator with their equivalents
    1. Hide transition
      1. Search for <arg name="class.name">com.innovalog.jmwe.plugins.

...

Find the transition name

...

Write down the transition name in the table.

...

Find the workflow name

...

Write down the workflow name.

...

Find the next instance of "com.innovalog.jmwe.plugins.validators.IssueLinkingValidator"

...

Repeat step 2 to 6 until you reach the end of the file

Linked Issues Status Validator

...

      1. conditions.NonInteractiveCondition</arg>
      2. You should see XML for the condition similar to thisImage Added
      3. Replace with <arg name="class.name">com.atlassian.jira.workflow.condition.RemoteOnlyCondition</arg> throughout the file using ReplaceAll.
      4. The replaced validator should look similar to this:Image Added
    1. Field is required validator
      1. Search for <arg name="class.name">com.innovalog.jmwe.plugins.validators.

...

Find the transition name

...

Write down the transition name in the table.

...

Find the workflow name

...

Write down the workflow name.

...

Find the next instance of "com.innovalog.jmwe.plugins.validators.LinkedIssuesStatusValidator"

...

Repeat step 2 to 6 until you reach the end of the file

Scripted (Groovy) validator

...

      1. FieldRequiredValidator</arg>
      2. You should see XML for the validator similar to thisImage Added
      3. Edit the <validator>...</validator> element:
        1. Remove the <arg name="hidFieldsList"></arg> line, if it exists 
        2. Add this line: <arg name="contextHandling">no</arg>
        3. On the <arg name="fieldKey">...</arg> line replace, fieldKey with hidFieldsList
        4. On the same line, replace commas separating the fields with "@@"
        5. Add @@ after the last field
        6. Replace <arg name="class.name">com.innovalog.jmwe.plugins.validators.

...

Find the transition name

...

Write down the transition name in the table.

...

Find the workflow name

...

        1. FieldRequiredValidator</arg> with <arg name="class.name">com.atlassian.jira.workflow.validator.FieldRequiredValidator</arg>
        2. The replaced validator should look similar to this:Image Added
      1. Find the next instance

...

      1. of the search.
      2. Repeat step

...

      1. iii until you reach the

...

      1. end of the file.

By now, you will have completed the XML fixes for workflow conditions, validators and unavailable workflow post-functions. The remaining fixes must be done by recreating/modifying the post-function and deleting the existing ones.

Step 4 - Identify workflows and transitions using JMWE post-functions that need to be recreated

At the end of this step, you will create a table with the workflow name and the transition names of all the workflows containing JMWE post-functions that need to be recreated

Transition Names
Workflow Name


  1. Unlink Issues post-function
    1. Search for the text - <arg name="class.name">com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction</arg>

    2. Work your way up on the file from the line that contains <arg name="class.name">com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction</arg> to find the name of the transition on which the post-function is configured. You can identify it under the <actions> tag.

...

    1. Image Added
    2. Write down the transition name in the table.

      Transition NameWorkflow Name
      Done


    3. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

    1. the <Workflow> tag. 

...

    1. Image Added
    2. Write down the workflow name

      Transition NameWorkflow Name
      DoneSFVFUP


    3. Find the next instance of <arg name="class.name">com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction</arg>

    4. Repeat steps b to g until you reach the end of the file.
    5. Now you will have a list of transitions and their corresponding workflow name.

      List of transitionsWorkflow Name
      Start Progress, DoneSFVFUP
      Start Progress, RejectTPI


  1. Link issues to the current issue post-function
    1. Search for the text <arg name="class.name">com.innovalog.jmwe.plugins.functions.LinkIssuesFunction</arg>
    2. Work your way up on the file from the line that contains <arg name="class.name">com.innovalog.jmwe.plugins.functions.LinkIssuesFunction</arg> to find the name of the transition on which the post-function is configured. You can identify it under the <actions> tag.

    3. Write down the transition name in the table.

      Transition NameWorkflow Name
      Done


    4. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

    1. the <Workflow> tag. 

    2. Write down the workflow name.

      Transition NameWorkflow Name
      DoneSFVFUP


    3. Find the next instance of <arg name="class.name">com.innovalog.jmwe.plugins.functions.LinkIssuesFunction</arg>

    4. Repeat steps b to g until you reach the end of the file.

    5. Now you will have a list of transitions and their corresponding workflow name.

      List of transitionsWorkflow Name
      Start Progress, DoneSFVFUP
      Start Progress, RejectTPI


  1. Email issue post-function
    1. Search for the text <arg name="class.name">com.innovalog.jmwe.plugins.functions.EmailIssueFunction</arg>
    2. Work your way up on the file from the line that contains <arg name="class.name">com.innovalog.jmwe.plugins.functions.EmailIssueFunction</arg> to find the name of the transition on which the post-function is configured. You can identify it under the <actions> tag.

    3. Write down the transition name in the table.

      Transition NameWorkflow Name
      Done


    4. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

    1. the <Workflow> tag. 

    2. Write down the workflow name.

      Transition NameWorkflow Name
      DoneSFVFUP


    3. Find the next instance of <arg name="class.name">com.innovalog.jmwe.plugins.functions.EmailIssueFunction</arg>

    4. Repeat steps b to g until you reach the end of the file.

    5. Now you will have a list of transitions and their corresponding workflow name.

      List of transitionsWorkflow Name
      Start Progress, DoneSFVFUP
      Start Progress, RejectTPI


  1. Create issue post-function
    1. Find for the text <arg name="class.name">com.innovalog.jmwe.plugins.functions.CreateIssueFunction</arg>
    2. Work your way up on the file from the line that contains <arg name="class.name">com.innovalog.jmwe.plugins.functions.CreateIssueFunction</arg> to find the name of the transition on which the post-function is configured. You can identify it under the <actions> tag.

    3. Write down the transition name in the table.

      Transition NameWorkflow Name
      Done


    4. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

    1. the <Workflow> tag. 

    2. Write down the workflow name.

      Transition NameWorkflow Name
      DoneSFVFUP


    3. Find the next instance of <arg name="class.name">com.innovalog.jmwe.plugins.functions.CreateIssueFunction</arg>

    4. Repeat steps b to g until you reach the end of the file.

    5. Now you will have a list of transitions and their corresponding workflow name.

      List of transitionsWorkflow Name
      Start Progress, DoneSFVFUP
      Start Progress, RejectTPI


  1. Now you will have three tables with List ot transitions, Workflow name that contain post-functions to be recreated.
  2. Sort the table by Workflow name

    Workflow NameList of transitions
    SFVFUPStart Progress, Done
    TPIStart Progress, Reject
    TLIDone, Reopen


Step 5 - Identify workflows and transitions using JMWE post-functions that need rework

In this step identify workflows and transitions using JMWE post-functions that need rework. At the end of this step you will have three tables with workflows, transitions and post-functions that have:

  • Groovy scripts in the Conditional execution section
  • Groovy expressions or Groovy templates to set a field of an issue or comment an issue
  • a specific user in the Run as section

Identify post-functions with Conditional execution script

  1. Search for the text <arg name="useGroovyCondition">yes</arg>
  2. Work your way up and look at <arg name="class.name"> to identify the name of the post-function (look at the end of the line).
  3. Ignore and find the next instance of the search if it is either of the following:
    1. <arg name="class.name">com.innovalog.jmwe.plugins.functions.CreateIssueFunction</arg>
    2. <arg name="class.name">com.innovalog.jmwe.plugins.functions.EmailIssueFunction</arg>
    3. <arg name="class.name">com.innovalog.jmwe.plugins.functions.LinkIssuesFunction</arg>
    4. <arg name="class.name">com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction</arg>
  4. If not write down the name of the post-function looking at the class name.

    Post-function nameTransition nameWorkflow name
    Transition Linked issues


  5. Work your way up on the file from the line that contains <arg name="useGroovyCondition">yes</arg> to find the name of the transition on which the post-function is configured. You can identify it under the <actions> tag.

  6. Write down the transition name in the table.

    Post-function NameTransition NameWorkflow Name
    Transition Parent issueDone


  7. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

  1. the <Workflow> tag. 

  2. Write down the workflow name.

    Post-function NameTransition NameWorkflow Name
    Transition Parent issueDoneSFVFUP


  3. Find the next instance of the search

  4. Repeat steps 2 to 10 until you reach the end of the file.

  5. Now you will have a list of transitions and their corresponding workflow name for post-functions that have a conditional execution script.

    Workflow NameList of transitionsPost-functions with Conditional script
    SFVFUPStart ProgressTransition linked issues, Set field value
    DoneSet field value of linked issues,
    TPIStart ProgressSet field value of linked issues
    RejectComment issue


Identify post-functions with Groovy template to set a field value or comment an issue

  1. Identify post-functions with Groovy template as the Value type
    1. Search for the text <arg name="valueType">template</arg>
    2. Work your way up and look at <arg name="class.name"> to identify the name of the post-function (look at the end of the line).
    3. Ignore and find the next instance of the search if it is either of the following:
      1. <arg name="class.name">com.innovalog.jmwe.plugins.functions.CreateIssueFunction</arg>
      2. <arg name="class.name">com.innovalog.jmwe.plugins.functions.EmailIssueFunction</arg>
      3. <arg name="class.name">com.innovalog.jmwe.plugins.functions.LinkIssuesFunction</arg>
      4. <arg name="class.name">com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction</arg>
    4. If not, write down the name of the post-function looking at the class name

      Post-function NameTransition NameWorkflow Name
      Comment linked issues


    5. Work your way up on the file from the line that contains <arg name="valueType">template</arg> to find the name of the transition on which the post-function is configured. You can identify it under the <actions> tag.

    6. Write down the transition name in the table.

      Post-function NameTransition NameWorkflow Name
      Comment linked issuesCreate


    7. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

    1. the <Workflow> tag. 

    2. Write down the workflow name.

      Post-function NameTransition NameWorkflow Name
      Comment linked issuesCreateCash inflow


    3. Find the next instance of the search

    4. Repeat steps b to j until you reach the end of the file.

    5. Now you will have a list of transitions and their corresponding workflow name with post-functions that have a Groovy template.

      Workflow NameList of transitionsPost-functions with Conditional script
      Cash InflowCreateComment linked issues
      DoneSet field value of linked issues
      Employee salary cycleRejectComment issue
      ApproveComment issue


  1. Identify post-functions with Groovy expression as the Value type
    1. Search for the text <arg name="valueType">expression</arg>
    2. Work your way up and look at <arg name="class.name"> to identify the name of the post-function (look at the end of the line).
    3. Ignore and find the next instance of the search if it is either of the following:
      1. <arg name="class.name">com.innovalog.jmwe.plugins.functions.CreateIssueFunction</arg>
      2. <arg name="class.name">com.innovalog.jmwe.plugins.functions.EmailIssueFunction</arg>
      3. <arg name="class.name">com.innovalog.jmwe.plugins.functions.LinkIssuesFunction</arg>
      4. <arg name="class.name">com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction</arg>
    4. If not, write down the name of the post-function looking at the class name

      Post-function nameTransition nameWorkflow Name
      Set field value


    5. Work your way up on the file from the line that contains <arg name="valueType">expression</arg> to find the name of the transition on which the post-function is configured. You can identify it under the <actions> tag.

    6. Write down the transition name in the table.

      Post-function nameTransition NameWorkflow Name
      Set field valueTo Do


    7. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

    1. the <Workflow> tag. 

    2. Write down the workflow name.

      Post-function nameTransition NameWorkflow Name
      Set field valueTo DoPKP flow


    3. Find the next instance of the search

    4. Repeat steps b to j until you reach the end of the file.

    5. Now you will have a list of transitions and their corresponding workflow name with post-functions that have a Groovy expression.

      Workflow NameList of transitionsPost-function name

...

    1. SFVFUPTPITo DoSet field value
      DoneSet field value


Identify post-functions with Run as specific user

  1. Search for the text - <arg name="runAsUser">
  2. Proceed to the next step if the argument has a value, similar to this: <arg name="runAsUser">djohn</arg>. If not find the next instance of the search.
  3. Work your way up and look at <arg name="class.name">. Identify the name of the post-function looking at the class name under the same function element.
  4. Ignore and find the next instance of the search if it is either of the following:
    1. <arg name="class.name">com.innovalog.jmwe.plugins.functions.CreateIssueFunction</arg>
    2. <arg name="class.name">com.innovalog.jmwe.plugins.functions.EmailIssueFunction</arg>
    3. <arg name="class.name">com.innovalog.jmwe.plugins.functions.LinkIssuesFunction</arg>
    4. <arg name="class.name">com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction</arg>
  5. If not write down the name of the post-function looking at the class name

    Post-function nameTransition NameWorkflow Name
    Transition linked issues

    work your way up on the file from the line that contains <arg name="runAsUser"> to find the name of the transition on which the validator is configured. You can identify it under the <actions> tag.

  6. Write down the transition name in the table.

    Post-function nameTransition NameWorkflow Name
    Transition linked issuesDone


  7. Work your way up further on the file from the line you have found the transition, to find the name of the workflow. You can identify it under

...

  1. the <Workflow> tag. 

  2. Write down the workflow name.

    Post-function nameTransition NameWorkflow Name
    Transition linked issuesDoneSFVFUP


  3. Find the next instance of the search

  4. Repeat steps 2 to 10 until you reach the end of the file.

  5. Now you will have a list of transitions and their corresponding workflow name with post-functions that are run as a specific user.

    Workflow NameList of transitionsPost-function name
    SFVFUPDoneTransition linked issues
    Start Progress, RejectComment issue


Now prepare a single table sorting it based on the Workflow name, Transition name. Add the count if a transition has a post-function more than once, as shown in the table

Workflow NameTransition namePost-function nameFix
SFVFUPStart ProgressTransition linked issues, Set field valueConditional execution

Start ProgressComment issueGroovy template

DoneTransition linked issuesRun As
Cash InflowCreateComment linked issues(2)Conditional execution

CreateComment linked issuesGroovy expression

DoneSet field value of linked issuesGroovy expression

Step 6 - Import the backup into your JIRA Cloud instance

  1. Re-zip the extracted files.
    1. In Windows: Select all the extracted files and re-zip them using any tool, say 7z or
    2. In Linux: Navigate to the directory where the files are that you want to zip. Then type: zip newbackup file1 file2 file3
    3. In Mac: Navigate to the directory where the files are that you want to zip. Then type: zip -r backup.zip newbackup.zip
  2. Log in to JIRA Cloud as an administrator.
  3. Import the

...

  1. backup into your JIRA Cloud instance using Jira Import Wizard in Import and Export section.

Step 7 - Install the JMWE add-on

See here to know how to install the JMWE add-on

Step 8 - Fix your workflows

In this step you will do the remaining fixes:

  • Recreating the workflow extension and deleting the existing ones or
  • Edit

...

  • the workflow extension and modify it.

Recreate the workflow extensions in Jira Cloud

  1. Refer to the table prepared in Step 4
  2. For each affected workflow listed in the table, open the workflow in an edit mode in the Cloud and Server. 
    1. For each affected transition listed of the workflow, go to that transition in the editor and then to the Post-functions tab.
    2. Locate the post-function in JIRA Cloud.

...

    1.  You can easily identify JMWE post-functions imported from Server because they appear

...

    1. strange with the Class: com.innovalog.jmwe.plugins.functions.UnlinkIssuesFunction

...

    1.  similar to this:
      Image Modified
    2. Identify the name of the post-function looking at the class name (look at the end of the line).
    3. Locate the same post-function in JIRA Server by its position in the list and edit it to see its full configuration.
    4. Recreate the post-function:
      1. Click

...

      1. on Add post-function

...

      1.  in JIRA Cloud.
      2. Recreate the post-function looking at its equivalent configuration in JIRA Server.
    1. Move the post-function right before the existing post-function
    2. Delete the existing post-function in JIRA Cloud.
  1. Once all the transitions in a workflow are fixed, publish the workflow.

Modify the workflow extensions in Jira Cloud

  1. Refer to the table prepared in Step 5
  2. For each affected workflow listed in the table, open the workflow in an edit mode in the Cloud and Server.
    1. For each affected transition listed for the workflow, go to that transition in the editor and then to the Post-functions tab.
      1. For each post-function listed in the table locate the Post-function in JIRA Cloud looking at the same post-function in JIRA Server by its position in the list.
      2. Edit the post-function. If the fix is for
        1. A Conditional execution/Groovy expression/Groovy template,

...

        1. look at the script in the Server and write a Nunjucks template that is equivalent to the existing one. Save the post-function.
        2. The Run as specific user,

...

        1.  look at the selected user in the Server and select the same in the Cloud. Save the post-function.
  1. Once all the transitions in a workflow are fixed, publish the workflow.