Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-30643

Cloning a transition does not update the title of the button in the view issue screen

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Summary:

      If the default jira workflow is copied and a transition is cloned with a different name, the cloned name will appear in the issue view screen for the transition buttons.
      E.g when I clone a transition, and specify a new name, the new transition keeps the old transition's name, so I have two (for example) 'Start Progress' buttons.

      Steps to Reproduce:

      1. Copy the jira system workflow.
      2. Edit it with the workflow designer.
      3. Add a new transition, cloning the Start Progress Transition, providing it with a different name.
      4. Create a new workflow scheme, assigning the new workflow to it and then assign it to a project.
      5. View an issue in the appropriate status for that transition. The transition will not have the new name.

      Expected Results:

      The transition has the name as defined within the workflow designer.

      Actual Results:

      The new transition has the name of the cloned transition. This appears to be caused by cloning the following elements:

                <meta name="opsbar-sequence">20</meta>
                <meta name="jira.i18n.title">stopprogress.title</meta>
      

      Regression:

      Not a regression. This is not existant in the ViewWorkflowSteps.jspa editor as that functionality is not available. Tested back to 4.4.5 and this was present.

      Notes:

      XML of a transition created from scratch:

              <action id="731" name="New Transition">
                <meta name="jira.description"></meta>
                <results>
                  <unconditional-result old-status="Not Done" status="Done" step="3">
                    <post-functions>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                        <arg name="eventTypeId">13</arg>
                      </function>
                    </post-functions>
                  </unconditional-result>
                </results>
              </action>
      

      XML of a cloned transition:

              <action id="711" name="I HAS A DIFFERENT NAME">
                <meta name="opsbar-sequence">20</meta>
                <meta name="jira.i18n.title">stopprogress.title</meta>
                <meta name="jira.description"></meta>
                <restrict-to>
                  <conditions>
                    <condition type="class">
                      <arg name="class.name">com.atlassian.jira.workflow.condition.AllowOnlyAssignee</arg>
                    </condition>
                  </conditions>
                </restrict-to>
                <results>
                  <unconditional-result old-status="Not Done" status="Done" step="4">
                    <post-functions>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction</arg>
                        <arg name="field.value"></arg>
                        <arg name="field.name">resolution</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.issue.IssueReindexFunction</arg>
                      </function>
                      <function type="class">
                        <arg name="class.name">com.atlassian.jira.workflow.function.event.FireIssueEventFunction</arg>
                        <arg name="eventTypeId">12</arg>
                      </function>
                    </post-functions>
                  </unconditional-result>
                </results>
              </action>
      

      Workaround:

      To update the title of the button, Please follow the steps below:

      1. Choose Cog > Issues
      2. Choose 'Workflows' under the WORKFLOWS section
      3. Click the Edit link in the desired workflow
      4. Click the link of the transition with the wrong title
      5. Click View Properties
      6. Delete the jira.i18n.title property from the transition.

      Attachments

        1. add-transition-options.png
          add-transition-options.png
          32 kB
        2. Clone Transition.png
          Clone Transition.png
          68 kB
        3. Issue View Screen.png
          Issue View Screen.png
          46 kB
        4. Workaround.png
          Workaround.png
          54 kB
        5. Workflow Editor.png
          Workflow Editor.png
          62 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dcurrie@atlassian.com Dave C
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: