Problem with "Set a field as a function of other fields" function

Issue #810 resolved
CGM created an issue

Hi Fidel,

we are on JIRA 7.2.8 and JWT 2.2.42 and I have a problem with the "Set a field as a function of other fields" function. When creating an issue I try to set the priority depending on the values of 2 other fields. The 2 fields are Select List (single choice). One has a value for percentage from "none" to 100 in 5% steps. The other field has text like "Cosmetic" or "no main functionality is impacted". Depending on the combination of the 2 fields the priority should be set to the right value. I use the following rules:

[%{12301} >= "50" AND %{15801} in ["entire product is impacted", "main functionality (hard or no workaround available)"]]Blocker [%{12301} >= "20" AND %{15801} in ["entire product is impacted", "main functionality (hard or no workaround available)"]]Blocker [%{12301} >= "10" AND %{15801} = "entire product is impacted"]Blocker [%{12301} >= "50" AND %{15801} in ["main functionality (easy workaround available)", "no main functionality is impacted"]]Critical [%{12301} >= "20" AND %{15801} = "main functionality (easy workaround available)"]Critical [%{12301} >= "10" AND %{15801} = "main functionality (hard or no workaround available)"]Critical [%{12301} = "5" AND %{15801} = "main functionality (hard or no workaround available)"]Critical [%{12301} = "5" AND %{15801} = "entire product is impacted"]Critical [%{12301} = null AND %{15801} = "entire product is impacted"]Critical [%{12301} >= "50" AND %{15801} = "Cosmetic"]Major [%{12301} >= "20" AND %{15801} = "no main functionality is impacted"]Major [%{12301} >= "10" AND %{15801} = "main functionality (easy workaround available)"]Major [%{12301} = "5" AND %{15801} = "main functionality (easy workaround available)"]Major [%{12301} = null AND %{15801} = "main functionality (hard or no workaround available)"]Major [%{12301} >= "10" AND %{15801} = "no main functionality is impacted"]Minor [%{12301} >= "10" AND %{15801} = "Cosmetic"]Minor [%{12301} = "5" AND %{15801} = "no main functionality is impacted"]Minor [%{12301} = null AND %{15801} = "main functionality (easy workaround available)"]Minor [%{12301} = "5" AND %{15801} = "Cosmetic"]Trivial [%{12301} = null AND %{15801} in ["Cosmetic", "no main functionality is impacted"]Trivial

Some of them working as expected and some not. For Example when I set the value to "5" and the other field to "Cosmetic" I expect "Trivial" for priority but I get a "Minor".

Could you please help me and tell me what I'm doing wrong. I searched the help forum but didn't find anything (maybe I used the wrong key words).

Best regards,

Jo

Comments (3)

  1. Fidel Castro Armario repo owner

    Use the following setting rules:

    [toNumber(%{12301}) >= 50 AND %{15801} in ["entire product is impacted", "main functionality (hard or no workaround available)"]]Blocker
    [toNumber(%{12301}) >= 20 AND %{15801} in ["entire product is impacted", "main functionality (hard or no workaround available)"]]Blocker
    [toNumber(%{12301}) >= 10 AND %{15801} = "entire product is impacted"]Blocker
    [toNumber(%{12301}) >= 50 AND %{15801} in ["main functionality (easy workaround available)", "no main functionality is impacted"]]Critical
    [toNumber(%{12301}) >= 20 AND %{15801} = "main functionality (easy workaround available)"]Critical
    [toNumber(%{12301}) >= 10 AND %{15801} = "main functionality (hard or no workaround available)"]Critical
    [toNumber(%{12301}) = 5 AND %{15801} = "main functionality (hard or no workaround available)"]Critical
    [toNumber(%{12301}) = 5 AND %{15801} = "entire product is impacted"]Critical
    [toNumber(%{12301}) = null AND %{15801} = "entire product is impacted"]Critical
    [toNumber(%{12301}) >= 50 AND %{15801} = "Cosmetic"]Major
    [toNumber(%{12301}) >= 20 AND %{15801} = "no main functionality is impacted"]Major
    [toNumber(%{12301}) >= 10 AND %{15801} = "main functionality (easy workaround available)"]Major
    [toNumber(%{12301}) = 5 AND %{15801} = "main functionality (easy workaround available)"]Major
    [toNumber(%{12301}) = null AND %{15801} = "main functionality (hard or no workaround available)"]Major
    [toNumber(%{12301}) >= 10 AND %{15801} = "no main functionality is impacted"]Minor
    [toNumber(%{12301}) >= 10 AND %{15801} = "Cosmetic"]Minor
    [toNumber(%{12301}) = 5 AND %{15801} = "no main functionality is impacted"]Minor
    [toNumber(%{12301}) = null AND %{15801} = "main functionality (easy workaround available)"]Minor
    [toNumber(%{12301}) = 5 AND %{15801} = "Cosmetic"]Trivial
    [toNumber(%{12301}) = null AND %{15801} in ["Cosmetic", "no main functionality is impacted"]]Trivial
    
  2. Log in to comment