Example of Generating Change Numbers Automatically

You can define assignment rules that generate change numbers automatically based on attributes such as extensible flexfields.

Scenario

You want the change number for a specific change type to be concatenated in the following format:
  • <name of the product team captured using an extensible flexfield> <3 digit numbers starting from 101 that are incremented automatically for each new change >

You have created an extensible flexfield to capture the name of the product team that requested the change.

The change number will be autogenerated once you enter the name of the team and save your changes. You can also create a message to convey how the change number is generated.

Here’s a table that summarizes the values you must enter in the Create Rule Set dialog box.

Field

Value

Composite No
Type Assignments
Association type Change type
Association Name The change type with which you want to associate the rule set.

Here’s a table that summarizes the values and expressions you must enter in the Create Rule dialog box and the Edit Rule Set page.

Field Value
Return type Change order number
Primary If Expression true
THEN/Secondary If Expression true
Return Value [ChangeHeader][Product Info.][Product Team] + auto_sequence("Number", 100, 1)
User Message The change number is [[ChangeHeader][Product Info.][Product Team] + auto_sequence("Number", 100, 1)]
Note: To ensure that valid attributes expressions are used in rules, you can right-click in one of the expression fields and select Insert Attribute, then use the Insert Attribute dialog box to populate attribute.