How to change the Original Step in Workflow Transition

Usage FAQ

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

How to change the Original Step in Workflow Transition

 

When you have already set up the workflow transition for the particular step correctly and realise you have set it up on a wrong Step by mistake. You can change the Destination Step for the workflow transition but you are not able to change the Original Step through JIRA User Interface.

 

There are two workaround to this:

1. Change the name of the Oringinal Step Name which linked to the particular Workflow transition
2. Do a simple hack in Workflow XML by doing the following

  • View desired workflow
  • Download workflow XML
  • Open it using text editor preferably Notepad++
  • Edit the transition from one step to another, for example:
<action id="701" name="Close Issue" view="commentassign">
<meta name="opsbar-sequence">60</meta>
<meta name="jira.i18n.submit">closeissue.close</meta>
<meta name="jira.i18n.description">closeissue.desc</meta>
<meta name="jira.i18n.title">closeissue.title</meta>
<meta name="jira.description">Closing an issue indicates there is no more work to be done on it, and it has been verified as complete.</meta>
<restrict-to>
<conditions>
<condition type="class">
<arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
<arg name="permission">Close Issue</arg>
</condition>
</conditions>
</restrict-to>
<results>
<unconditional-result old-status="Finished" status="Closed" step="6">
<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">5</arg>
</function>
</post-functions>
</unconditional-result>
</results>
</action>

You will need to cut the code from <action id=> to </action>, and paste it to your desire Steps (<step id=>) inside the <actions></actions>

  • Save the file and do Import from XML in Issues > Workflows

 

最終更新日: 2013 年 1 月 16 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.