Automatically assign an issue based on Issue Type in Jira server

お困りですか?

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

コミュニティに質問

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

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

症状

User would like to automatically assign an assignee based on Issue Type that is selected on Create Issue Screen.

シナリオ

Here is an example of what the user would like to achieve:

  • Scenario A - Automatically assign newly created Bug issues to: John
    1. Click the Create Issue button and the create issue screen will appear.
    2. The issue type is Bug by default. Choose the Issue Type = Bug and fill in the other details. (Leave the Assignee field to Automatic), then click the Create button.
    3. On the Issue ticket, the Assignee will automatically show John at the left under People.
  • Scenario B - Automatically assign newly created Story issues to: Smith
    1. Click the Create Issue button and the create issue screen will appear.
    2. The issue type is Bug by default. Choose the Issue Type = Story and fill in the other details. (Leave the Assignee field to Automatic), then click the Create button.
    3. On the Issue ticket, the Assignee will automatically show Smith at the left under People.

ソリューション

Configure Workflow

  1. Go to your workflow page by clicking on the Administration () > Issues or click on the screen, type . enter issues in the search screen and then click on Workflows from the right pane.
  2. Now identify the current workflow currently in use by the appropriate project then click on the Copy button under operations. (It's best if you use the workflow that has the DEFAULT tag next to it. You can also create a new workflow by clicking the Add Workflow button, but this will be a blank workflow.)
  3. Now we will create a workflow for the first Issue Type: Bug. Name it Bug.
  4. Click on workflows on the left pane, then click on the edit link under Actions for your desired workflow scheme.
  5. Click on the First Step Name(id) which is Open by default. A new screen will appear showing the workflow for the Step: Open.
  6. Click on Create Issue. Now you will see the Transition : Create Issue workflow page. Click on the Post-Functions tab. Click on Add post function.
  7. At the Add Post Function To Transition page, scroll down and pick the Update Issue Field option then click Add.
  8. Now at the Add Parameter To Function page , select Assignee as the Issue field, and then select the appropriate user for the Field Value (For Example: Smith), and click Update.

Repeat steps 2-8 for another workflow for the Issue type: Story. Change the values of workflow name from Bug to Story.

Configure Workflow Scheme

Now that you have 2 new workflows. You need to associate this workflow to a workflow scheme.

  1. Go to workflow Scheme
  2. Click on the Add Workflow Scheme button.
  3. Give it a name (Example : "AutoAssign")
  4. Click on Add Workflow > Add Existing.
  5. Select the workflows your created earlier one by one. We shall select Bug first. Click next.
  6. This is the screen where you map issue type to the workflow, which was already assigned to John in our example. Select Bug and then click finish. You can also select multiple issueType as per requirement:

     Add the other workflows needed by repeating steps 4-6 but make sure you select a different workflow and assign an appropriate issue type to that workflow.

  7. Finally from Project Settings → Workflows → Switch Scheme, you can configure workflow scheme for specific project. 


Now whenever you create an issue, the users will automatically be assigned based on the issue type that you have configured.

Please take note that only 2 issue types are configured in this example. You may add as many, including Custom issue types.

説明 A user would like to automatically assign an assignee based on Issue Type that is selected on Create Issue Screen.
製品Jira
プラットフォームServer
最終更新日: 2024 年 2 月 13 日

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

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