You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


On this page

Use case

When an issue is not assigned and a user in group customer makes a transition, then auto-assign the issue to a random user in the appropriate category.


Issue transitioned event

Create a new rule and name it appropriately.

Providing a description will help you to identify what the rule does but this step is optional.

Add a Trigger → Issue transitioned event

User condition

Add a user condition.

Set the current user to the user to evaluate.

Add the group customer to user is in group(s) as check against.

Assign issue

Under user condition click on Add → Assign issue

Select user in project role as Assignee and choose the appropriate project role (e.g. Administrators).

Enable the rule by clicking on the Enable button → 


Screencast

No screencast available at the moment.


Import the example

Import the JSON file below to get started in no time.

JSON

After importing the JSON file, make sure to check the configuration of the rule. Non-existing configuration elements (issue types, fields, values etc.) will be highlighted.

{
    "name": "Automatically assign issues",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "ISSUE_TRANSITIONED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "USER_CONDITION",
            "ruleEntityType": "CONDITION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "userOption": "currentUser",
                "checkOption": "group",
                "group": [
                    "Customer"
                ]
            },
            "children": null,
            "hasChildren": false
        },
        {
            "sequence": 1,
            "type": "ASSIGN_ISSUE",
            "ruleEntityType": "ACTION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "assignMode": "projectRole",
                "projectRole": "10002",
                "mode": "projectRoleRandom",
                "sendMail": "true",
                "actingUser": "field_00020"
            },
            "children": null,
            "hasChildren": false
        }
    ],
    "hasChildren": true
}



If you still have questions, feel free to refer to our support team.