You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi,
I explain my use case, I want to manage a risk table with customfield Impact & customfield probability, these fields are select list single value
Then when a user select values in Impact & Probability, an automation rule is launched with 2 lookup tables:
- One table for Impact to define the value of impact ex: User selects Low Impact so in the table Low Impact matches with 1
- One table for Probability to define the value of probability ex: User selects Minor so in the table Minor matches with 1
Finally I calculate Impact value x Probability value to have the risk scoring
It works well except the case when impact or probability is empty.
No matching with a empty value inside lookup table so no calculation available.
I want to avoid to set Impact & Probability as required.
There is a solution to manage empty values + lookup table?
Below my rule:
Finally, I find the solution :)
I add a IF Else condition to check where Impact or Probability is empty.
If yes => Risk scoring =0
Else I use table look up and calculate Impact x Probability.
Another way to do this is with default values for a field, using the pipe | operator.
For example, {{issue.someFieldThatCouldBeEmpty.value|0}}
This would substitute in 0 when the field is empty.
For your scenario, the lookup tables could contain a value to use when the field(s) are empty, and the lookups would then be:
{{tblMyLookupTable.get(issue.someFieldThatCouldBeEmpty.value|0)}}
This technique eliminates the need for conditional logic in the rule.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.