Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-11547

JIRA Agile Simplified Workflow - Post Functions displayed incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 9.0.0
    • 6.3.12, 6.4.14, 6.6.0, 6.6.13, 6.6.80, 7.1.0, 7.2.7, 7.3.1, 7.4.3, 7.6.0, 7.11.2, 8.1.0, 8.2.1, 8.5.0, 8.12.0, 8.13.2, 8.14.0
    • Workflow Triggers

      Summary

      With workflows created by jira agile the descriptions of the post functions are referencing the java objects instead of the descriptions, please see the attached screenshot.

      Environment

      • JIRA Software Scrum Default Workflow

      Steps to Reproduce

      1. Select Manage Boards
      2. Create Board
      3. Create a Scrumb board
      4. New project and a new board
      5. Fill in Board / Project name
      6. Select *Agile Simplified Workflow (reocmmended)
      7. Create Board
      8. Go to workflow for this newly created project
      9. Select a transition
      10. check the Post Functions

      Expected Results

      A description of the post functions.

      Actual Results

      The following will be processed after the transition occurs

      1. Type: class
        Class: com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction
        Arguments:
        field.name = resolution
        field.value =
      2. Type: class
        Class: com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction
      3. Add a comment to an issue if one is entered during a transition.
      4. Type: class
        Class: com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction
      5. Re-index an issue to keep indexes in sync with the database.
      6. Type: class
        Class: com.atlassian.jira.workflow.function.event.FireIssueEventFunction
        Arguments:
        eventTypeId = 13

      Workaround

      For Jira administrator:

      • If you need to edit the generated workflow, create your own workflow instead of editing or copying the generated workflow

      For system administrator:

      1. Stop JIRA
      2. Make sure to backup data just in case
      3. Fix the descriptor
        • For instance:
          $ W_ID="10200" # Change this value as the affected workflow ID
          $ DB_NAME="__JIRA_DATABASE_NAME__"
          $ psql ... -d ${DB_NAME} -c "Copy (select descriptor from jiraworkflows where id = ${W_ID}) To STDOUT;" > descriptor_${W_ID}.xml
          # Edit the xml file (Remove '\n' and the redundant line breaks)
          $ psql ... -c "update jiraworkflows set descriptor = '$(cat descriptor_${W_ID}.xml)' where id = ${W_ID}" ${DB_NAME}
          
      4. Start JIRA
      5. Verify the affected workflow is fixed (Discard the draft workflow if exists)

              afb6234f8e80 Mark Patterson (Inactive)
              ilabras Ibrahim (Inactive)
              Votes:
              132 Vote for this issue
              Watchers:
              125 Start watching this issue

                Created:
                Updated:
                Resolved: