Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-15150

Adding Assets post function "Create an Assets Object from a Jira Issue" doesn't save Condition

XMLWordPrintable

      Issue Summary

      The condition (groovy-script) that can be added within the post function "Create an Assets Object from a Jira Issue" will not be saved.

      This is reproducible on Data Center: (yes) 

      Steps to Reproduce

      1. Edit any issue workflow
      2. Add a post function to any transition
      3. Select Assets Post-Function
      4. Select Create an Assets Object from a Jira Issue
      5. In the Condition field enter any groovy script
      6. Fill other fields as needed
      7. Click on Update
      8. Verify the data has been saved by clicking on the pencil icon of this post function

      Expected Results

      The groovy script has been saved and can be modified.

      Actual Results

      The condition field is empty. However, the script has been saved in the database

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

      However, as the condition is saved, the workflow should work as expected.

      You can check this by exporting the workflow as XML. After the export open the file in an editor and search for 

      <arg name="field.groovyCondition"> 

      The groovy script will be noted after this. NOTE: depending on your workflow, you might have more than one groovy script, you will need to check each occurrence.

              578bae526277 Arun S
              cpostma@atlassian.com Conny Postma (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: