How to Edit the Resolution of a Jira Issue

お困りですか?

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

コミュニティに質問

プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。

問題

誤った解決状況が設定されてしまい、これを変更したい場合があります。この記事では変更方法についてご案内します。

One or more of the following has occurred in your Jira applications:

  1. 課題の解決状況が空白ではなく未解決と表示されるようになってしまった。
  2. JQL が一致しないため、組み込みのプロジェクト課題フィルターで適切な結果が返されない。
  3. 課題が解決またはクローズされていないのに、アクティビティ ストリームに取り消し線つきで表示される。
  4. 解決されていない課題に解決状況が設定されている。
  5. An issue is in the closed or done status, however it does not have a resolution.
  6. An issue is closed/done, but it still appears on the Assigned to Me.
  7. An issue is closed/done but it does not reflects on the Issue Summary Open vs Resolved Issue Chart.

In the example shown in the screenshot below, the issue is closed (in the "Done" status) but the resolution is empty:

原因

これは次のいずれかによって発生することが確認されています。

  • The transition leading to the Closed status is either missing a post-function to set the resolution field, or it is configured with a post-function that sets the resolution field to an incorrect value
  • Adding the resolution field to a screen, then using that screen to modify the issue. The resolution will be forced to be entered as per the default System Field Configuration
  • 既定の画面に解決状況フィールドを必須として追加している。
  • 未解決という名前の解決状況を定義し、それを課題に関連付けている。

Jira applications by default will mark an issue as Unresolved when the resolution field does not have any value on it. Similarly, if an issue does not carry any value on the Resolution Field, Jira applications will see it as not yet resolved.

回避策

Scenario 1

Use the below workaround for the following symptoms in your Jira applications:

  • 課題の解決状況が空白ではなく未解決と表示されるようになってしまった。
  • JQL が一致しないため、組み込みのプロジェクト課題フィルターで適切な結果が返されない。
  • 課題が解決またはクローズされていないのに、アクティビティ ストリームに取り消し線つきで表示される。
  • The resolution field of a Jira issue has a value (for example: Resolved, Fixed, etc...) even though the issue is not Closed yet

(warning) Before you go ahead with this solution, please make sure to make a backup of your Jira application data by following this Jira back up documentation, so that you can easily revert your changes back if necessary.

Here are the steps to implement this solution:

  1. Identify the name of the workflow used by the Jira issue(s) for which you need to fix the resolution
    1. Open one of the impacted Jira issue in the Issue View, and click, on the View workflow link
    2. Take note of the name of the workflow
  2. Remove the resolution field from the configuration all the screens used in the workflow (identified in Step 1), except for the screens used to close/resolve the issue. This way, we will ensure that the resolution field will be only editable on the screen that users will see when they transition the issue to the Closed/Resolved/Done status. To do that:
    1. Login as a Jira Administrator
    2. Go to the page ⚙ > Issues > Workflows
    3. Scroll down to the workflow identified in Step 1, and click on the Edit button next to it
    4. Click on each transition, and check if there is a screen assigned to it
    5. If there is a screen assigned to it, click on the screen and check if the screen should or should not have the resolution field, and remove this field if necessary.
    6. For example, in the screenshot below, we can see that the "In progress" transition is associated to the screen "Comment Screen". If we click on the screen, we can see that the resolution field is included there, while it should not be the case, since this transition does not go into the Resolved/Closed or Done status:

  3. For this step, we will add a new transition to the workflow that will reset the resolution:
    1. Make sure you are still logged in as a Jira Administrator
    2. Go back to the page ⚙ > Issues > Workflows
    3. Scroll down to the workflow identified in Step 1, and click on the Copy button next to it
    4. Look for the copy of the workflow in the page ⚙ > Issues > Workflows and click on the Edit button next to it. This copy will be a temporary workflow that we will edit and use to fix the issue resolution field.
    5. Switch to the diagram view, then click on the Add a transition button to create a new temporary transition
    6. Let's call this transition 'Fix Resolution', and set From status and To status to the same workflow status (the status that the Jira issues with the incorrect resolution field are currently in). For example:
    7. After you add the transition, you should see it in the diagram view, leaving and entering the same status:
    8. Now click on the Post Functions link, and then click on the Add post function button 
    9. Add the Update issue field post function
    10. Choose the Resolution field and set it to None 
    11. Publish the workflow
    12. Go to ⚙ > Issues > Workflow Schemes, and scroll down to the workflow scheme associated to the type of the issue for which you wish to fix the resolution
    13. As explained in the documentation Configuring workflow schemes, associate the Issue Types to the new temporary workflow that we created and updated
  4. Let's now fix the impacted issues, using the new workflow we just created
    1. Open any impacted issue in the Jira issue view, and then transition them using the 'Fix Resolution' transition. This will reset the field to None for all these issues
    2. Alternatively, you can use a Bulk Operation to edit all the impacted issues and transition them using the 'Fix Resolution' transition. This will reset the field to None for all these issues
  5. After that, make sure to go back to ⚙ > Issues > Workflow Schemes and update the scheme so that the issue type is associated again to the original workflow

We also have an improvement request tracked for this under JRASERVER-11444 - Getting issue details... STATUS .

Scenario 2

Jira アプリケーションの次のような症状については、以降の回避策を使用します。

  • 課題がクローズされているが、解決状況が設定されていない。
  • 課題がクローズされているが、引き続きオープンな担当課題に表示される。
  • 課題がクローズされているが、課題の作成済み課題 vs 解決済み課題レポートに反映されない。

(warning) Before you go ahead with this solution, please make sure to make a backup of your Jira application data by following this Jira back up documentation, so that you can easily revert your changes back if necessary.

Here are the steps to implement this solution:

  1. Identify the name of the workflow used by the Jira issue(s) for which you need to fix the resolution
    1. Open one of the impacted Jira issue in the Issue View, and click, on the View workflow link
    2. Take note of the name of the workflow
  2. For this step, we will add a new transition to the workflow that will set the resolution field to the expected resolution value:
    1. Make sure you are still logged in as a Jira Administrator
    2. Go back to the page ⚙ > Issues > Workflows
    3. Scroll down to the workflow identified in Step 1, and click on the Copy button next to it
    4. Look for the copy of the workflow in the page ⚙ > Issues > Workflows and click on the Edit button next to it. This copy will be a temporary workflow that we will edit and use to fix the issue resolution field.
    5. Switch to the diagram view, then click on the Add a transition button to create a new temporary transition
    6. Let's call this transition 'Fix Resolution', and set From status and To status to the same workflow status (the status that the Jira issues with the incorrect resolution field are currently in). For example:
    7. After you add the transition, you should see it in the diagram view, leaving and entering the same status:
    8. Now click on the Post Functions link, and then click on the Add post function button 
    9. Add the Update issue field post function
    10. This time, instead of setting the resolution field to None like the steps above for Scenario 1, you should set it to the desired value, for example 'Fixed' or any resolution.

    11. Publish the workflow
    12. Go to ⚙ > Issues > Workflow Schemes, and scroll down to the workflow scheme associated to the type of the issue for which you wish to fix the resolution
    13. As explained in the documentation Configuring workflow schemes, associate the Issue Types to the new temporary workflow that we created and updated
  3. Let's now fix the impacted issues, using the new workflow we just created
    1. Open any impacted issue in the Jira issue view, and then transition them using the 'Fix Resolution' transition. This will reset the field to the desired resolution for all these issues
    2. Alternatively, you can use a Bulk Operation to edit all the impacted issues and transition them using the 'Fix Resolution' transition. This will reset the field to the desired resolution for all these issues
  4. After that, make sure to go back to ⚙ > Issues > Workflow Schemes and update the scheme so that the issue type is associated again to the original workflow

ScriptRunner を使用した代替方法

これはチケットの解決状況を削除するための代替方法です

  1. Script Runner アドオンをインストールします。
  2. ユーザーが作成したすべての unresolved ステータスの課題を検索します。
  3. 検索をフィルターとして保存します。
  4. 組み込みのスクリプトを使い、このフィルターに一致する項目を任意の解決状況に設定します。
  5. Administration >> Issues >> Issue Attributes >> Resolutions から unresolved ステータスを削除します。
説明誤った解決状況が設定されてしまい、これを変更したい場合があります。この記事では変更方法についてご案内します。
製品Jira
プラットフォームサーバー
最終更新日 2022 年 5 月 11 日

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

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