I am creating an automation which does a calculation based on the value of the priority field and another field.
To do this I need to map the Priority names to values required for the calculation. This should be quite simple but is failing for a reason I can summarize in the following message that I log in my automation
Priority="{{issue.priority.name}}" IsItMajor={{issue.priority.name.equalsIgnoreCase(“Major”)}}
for which the output is
Priority="Major" IsItMajor =false
Any ideas welcome ?
Hi @Rees_ Ian ,
I am not sure why you would need to lookup the name of a priority specifically to enable your calculations.
Automation allows you to create a lookup table that you can than use to retrieve the values you may need to process further. If you could map the list of priorities and the corresponding values in such a table, I think you may get an easier way to process the required logic.
Have a look at this community post to get you starrted. It also has a link to further documentation in it.
Hope this helps!
Thanks I will have a look at that. Although I hae solved the initial problem just by assigning the priotiy name to a variable and doing the check on the variable
varPriority="{{issue.priority.name}}"
IsItMajor={{varPriority.equals("Major")}} and that works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Walter Buggenhout - thanks for the info and Lookup tables seem to b the way to go. I've created the lookup tables but how do I lookup, based on the value of a field in an issue.
e.g. for a table called tablePriority {{tablePriority.get("Medium")}} work fine to get me the numerical value I have assigned to Medium but how can I look up based on say a smart value or the issues priority name
e.g. {{tablePriority.get({{varPriority)}}
or {{tablePriority.get({{issue.priority.name}})}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorted - thanks very much for your help {{tablePriority.get(issue.priority.name)}} Breadth= {{tableBreadth.get(issue.Breadth.value)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.