Features used to implement the example
Example: Setting the priority depending on the multiplication of custom fields
In this example, the priority of an issue should be set depending on the result of multiplying two custom fields.
For this, three custom fields are needed:
- "Impact" (Default number custom field)
- "Probability" (Default number custom field)
- "Rating" (Calculated Number Field) for storing (Impact * Probability)
Depending on the outcome of the multiplication, the priority should be set as the following:
Rating | Priority |
---|---|
13-16 | Highest |
9-12 | High |
4-8 | Medium |
1-3 | Low |
The configuration of the Calculated Number Field "Rating" will look like this:
Text to be parsed is: {10417} * {10418}
Note that:
- {10417} is the field code for "Impact" (this field code might differ on your instance)
- {10418} is the field code for "Probability" (this field code might differ on your instance)
For this we need the post function Set a field as a function of other fields. The configuration looks like the following:
Text to be parsed is:
[{10419} >= 1 AND {10419} <= 3]Low
[{10419} >= 4 AND {10419} <= 8]Medium
[{10419} >= 9 AND {10419} <= 12]High
[{10419} >= 13 AND {10419} <= 16]Highest
Note that:
- {10419} is field code for calculated number field "Rating" (this field code might differ on your instance)
Once configured, the transition will look like this:
Other examples of that function
- Add watcher depending on security level
- Add watchers based on issue type
- Add watchers depending on the value of a custom field
- Assign issue based on the value of a Cascading Select custom field
- Assign issue to a specific user based on a specific custom field value
- Assign issue to current user if assignee is empty
- Assign issue to current user if the user is not member of a certain project role
- Change assignee based on a custom field
- Change parent's status depending on sub-task's summary
- Changing issue priority depending on issue description
- Compose dynamic text by inserting field values in a text template
- Copy "Due date" into a date type custom field in a linked issue if it's greater than current issue's "Due date"
- Limit the number of hours a user can log per day
- Make parent issue progress through its workflow
- Rise priority if due date is less than 3 weeks away
- Set "Due date" depending on the value of other fields, in case it's uninitialized
- Set "Due date" to a specific day of next week no matter of date of creation this week
- Set "Due date" to current date at issue creation if not initialized
- Set a custom field "Urgency" depending on a combined value of issue's priority and "Impact" custom field
- Set a date based on current date
- Set a field based on reporter's email
- Set a watcher at ticket creation depending on custom field's value
- Set assignee depending on issue type
- Set security level based on groups and project roles the reporter or creator are in
- Set security level depending on reporter or creator
- Set the assignee based on a condition
- Set the value of a field of type "User Picker" depending on other field's value
- Set watchers depending on the value of a custom field
- Setting a custom field (User Picker) based on the value of another custom field (Text Field)
- Setting a field's default value depending on another field
- Setting the priority depending on the multiplication of custom fields
- Transition an issue automatically depending on the value of a field
- Unassign an issue when assigned to project leader
- Update checkboxes custom field if a file has been attached during a transition
- Using project properties to calculate custom sequence numbers