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

Compare with Current View Page History

« Previous Version 3 Next »

Use case

Return a number that defines the priority of an issue based on the values of certain fields. If one of the field contains one of the defined values, the total number will increase by one.

Expression

Create and configure a Smart field using this expression in General parsing mode:

%{sum([%{issue.cfnnnnn} = "Option 1" ? 1 : 0, %{issue.cfppppp} = "Option 2" ? 1 : 0 ])}

Please, replace nnnnn and ppppp with the IDs of the Select List (single choice) custom fields.